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.3.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

b_jira_filter-0.0.3-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: b_jira_filter-0.0.3.tar.gz
  • Upload date:
  • Size: 10.2 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.5

File hashes

Hashes for b_jira_filter-0.0.3.tar.gz
Algorithm Hash digest
SHA256 cf386bf905dc4eb566e4902872d9ec96336df29aa2633aa7eafe8785965ff71b
MD5 980ce4e63ab3046c5a5f25a230869176
BLAKE2b-256 91330fd89f80df774d459bfe2b051138aaa2ab9539e8ba13fdb3df2553a244ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: b_jira_filter-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.5 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.5

File hashes

Hashes for b_jira_filter-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0adf26a536ae774fa8dcfca5bcd411831b8a75bce07dc818cffdbd02436c7bf7
MD5 4519ac332bb3890cc5a8dc9899fba922
BLAKE2b-256 facded1e55b63410859018d5b22f6dbf027260a6f50d196bc4c77a94cd0593b2

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