Jira to Json
A Python library to convert Jira issues to Json.
The library is based on the Jira REST API, and uses the Requests library.
It contacts the Jira server, downloads the issues according to the specified JQL query, and converts them to Json. An API is provided to access the issues and their fields and for further processing.
Supports Jira Datacenter.
Installation
Install the library with pip:
pip install "jira2json[dotenv]"
The dotenv extra installs the python-dotenv
library, which is used to load the Jira server's url and the authentication token
from a .env file.
Usage
The library can be used as a command line tool or as a Python library.
Command line tool
The command line tool is called jira2json and is installed with the library.
Run jira2json --help for usage information.
Python library
The library exports the following functions:
iterate_jira_issues: iterates over the issues returned by a JQL query.prase_issues: applies parsers on the issue's data.save_jsons_to_file: saves the issues to a file.
Typical usage:
from jira2json import iterate_jira_issues, prase_issues, save_jsons_to_file
# Iterate over the issues returned by the JQL query
issues = iterate_jira_issues(
base_url='https://jira.atlassian.com',
jql='project=JRA',
token='mytoken',
)
# Parse the jsons and convert them to a more usable format
issues = prase_issues(issues)
# Save the issues to a file
with open('issues.json', 'w') as f:
save_jsons_to_file(issues, f)
Development
Install the dev extra:
pip install -e .[dev,dotenv]
Metadata
Release files for jira2json 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jira2json-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for jira2json-0.1.2-py3-none-any.whl |
Release files / jira2json-0.1.2-py3-none-any.whl
| Download URL | jira2json-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d2f0a35206f64353769b6b8c783abfcc2833548faacaddc3fb5a158fad22c7a
|
|
BLAKE2b-256 checksum How to use checksums |
d6edd4bcef1a6dda3f4ce2da0e66534922d886704230321bb53c9f427a59f100
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for jira2json 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.