Skip to main content

Script library to interact with JIRA API.

Project description

B.JiraFilter

A CLI based scripts library to interact with JIRA API. Not all actions are implemented in JIRA UI, therefore, we have created this library with custom logic and custom functionality that can be used by anyone.

Description

Sometimes it is more convenient and straight-forward to do stuff via CLI rather than via UI. Also, the JIRA UI can not support every single functionality possible, therefore, for custom logic and custom commands we have developed this CLI based library. Scroll down to see what are the available custom logic commands.

Remarks

Biomapas aims to modernise life-science industry by sharing its IT knowledge with other companies and the community. This is an open source library intended to be used by anyone. Improvements and pull requests are welcome.

Related technology

  • Python 3
  • JIRA
  • JIRA Python SDK

Assumptions

The project assumes the following:

  • You have basic knowledge in JIRA software.

Useful sources

Install

The project is built and uploaded to PyPi. Install it by using pip.

pip install b-jira-filter

Or directly install it through source.

pip install .

Usage & Examples

This section shows what are the available commands and how to use them.

Credentials management

The library has a flexible credentials management.

You can pass credentials to the constructor:

from b_jira_filter.objects.credentials import Credentials

Credentials(
    username='Username',
    password='Password',
    server='Server'
)

Or you can set the OS environment:

from b_jira_filter.objects.credentials import Credentials

Credentials()
export/set JIRA_USERNAME=Username
export/set JIRA_PASSWORD=Password
export/set JIRA_SERVER=Server

Or you can enter these value manually in a prompt:

from b_jira_filter.objects.credentials import Credentials

Credentials()
(venv) > jira.sprints.storypoints
Username: ...
Password: ...
Server: ...

Commands

The library exposes CLI commands:


jira

Use this command to see what are available different commands and sections.

(venv) > jira

Available sections:
- sprints

jira.sprints

Use this command to see what are available different commands and sections in sprints section.

(venv) > jira

Available commands:
- storypoints

jira.sprints.storypoints

Use this command to calculate story points for each assignee in any sprint. For example:

(venv) > jira.sprints.storypoints

Select a board (1-2):

1. TEST1 board
2. TEST2 board

Board number[Default 1]:

> ENTER

Select a sprint (1-2):

1. TEST Sprint 1
2. TEST Sprint 2

Sprint number[Default 2]:

> ENTER

----------------------------------------------------------------

Dev 1   : Total:  68 | Completed:  21( 30.9%) | Not completed:  47( 69.1%).
Dev 2   : Total:  61 | Completed:  21( 34.4%) | Not completed:  40( 65.6%).

----------------------------------------------------------------

Testing

Currently this package has no tests.

Contribution

Found a bug? Want to add or suggest a new feature?
Contributions of any kind are gladly welcome. You may contact us directly, create a pull-request or an issue in github platform. Lets modernize the world together.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

b_jira_filter-0.0.4.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

b_jira_filter-0.0.4-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file b_jira_filter-0.0.4.tar.gz.

File metadata

  • Download URL: b_jira_filter-0.0.4.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6

File hashes

Hashes for b_jira_filter-0.0.4.tar.gz
Algorithm Hash digest
SHA256 33a6b191edfe1088069be2aa688b60457ee154001804fd71bda4402489d6a527
MD5 7a82edd16f20e90146b9853e5de7b2c9
BLAKE2b-256 69852ea452756a936ff8afaddc419da2b39958fd635aa10f1cf47886a83c2298

See more details on using hashes here.

File details

Details for the file b_jira_filter-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: b_jira_filter-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6

File hashes

Hashes for b_jira_filter-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4222a724158b34c9c91eed1a83fd27d453bdb244e392980b780c0d941710603b
MD5 c6f8cd99edb0e2b38fd46a6a2488649f
BLAKE2b-256 0720c96a17a608c58a3708865d307fff61aebbea0375123d215e7eda888949d9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page