Skip to main content

PyJira REST API wrapper

Setup

First, you’re gonna want to do this:

pip install pyjira

You’re already halfway there!

Next, you need to set up your environment variables.

Go to your home directory (~/) and put this in “.pyjira”:

export PYJIRA_USER=put your username here export PYJIRA_TOKEN=put your password here export PYJIRA_ORG=put the organization name here

Next, add this to “.bash_profile”, also in the home directory:

source ~/.pyjira

On startup, these environment variables will be loaded and you will be able to use PyJira. Woot!

Usage

To use, import like so:

import pyjira

To get issues relating to a project:

pyjira.get_issues(“SpaceJam”) # Where “SpaceJam” is the project name

You can also limit the amount of results you get (default=50):

pyjira.get_issues(“SpaceJam”, 20) # 20 maximum results

To get a specific issue, call get_issue() with the issue’s id/key:

pyjira.get_issue(“SpaceJam-931”)

To get all existing fields, call get_all_fields():

pyjira.get_all_fields()

To get a specific field:

pyjira.get_field(“customfield_90010”) # You can also just pass “90010”

To get all fields within an issue:

pyjira.get_issue_fields(“SpaceJam-931”) # Add False as a second parameter to get result with “customfield_#” field names

WIP

This project doesn’t have many functions at the moment, but it will be added to whenever a new one is needed.

Metadata

Release files for pyjira 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyjira 1.0
File Size Uploaded Provenance Actions
pyjira-1.0.tar.gz 3.1 kB Without provenance Details for pyjira-1.0.tar.gz

Release files / pyjira-1.0.tar.gz

Download URL pyjira-1.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c4ea13b18cf30d427439658990866408377ec80f4778c964c6764c4cd5da6200
BLAKE2b-256 checksum
How to use checksums
3ace3d04d2924d7092d74e1ac93fd095fb3fe9355467cd2a5f570fead6c7249a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pyjira 1.0

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.

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page