• Stars
    star
    1,940
  • Rank 23,891 (Top 0.5 %)
  • Language
    Python
  • License
    BSD 2-Clause "Sim...
  • Created over 10 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python Jira library. Development chat available on https://matrix.to/#/#pycontribs:matrix.org

Jira Python Library

https://img.shields.io/badge/irc-%23pycontribs-blue


https://readthedocs.org/projects/jira/badge/?version=main

This library eases the use of the Jira REST API from Python and it has been used in production for years.

As this is an open-source project that is community maintained, do not be surprised if some bugs or features are not implemented quickly enough. You are always welcomed to use BountySource to motivate others to help.

Quickstart

Feeling impatient? I like your style.

from jira import JIRA

jira = JIRA('https://jira.atlassian.com')

issue = jira.issue('JRA-9')
print(issue.fields.project.key)            # 'JRA'
print(issue.fields.issuetype.name)         # 'New Feature'
print(issue.fields.reporter.displayName)   # 'Mike Cannon-Brookes [Atlassian]'

Installation

Download and install using pip install jira or easy_install jira

You can also try pip install --user --upgrade jira which will install or upgrade jira to your user directory. Or maybe you ARE using a virtualenv right?

By default only the basic library dependencies are installed, so if you want to use the cli tool or other optional dependencies do perform a full installation using pip install jira[opt,cli,test]

Usage

See the documentation for full details.

Development

Development takes place on GitHub using the default repository branch. Each version is tagged.

Setup

  • Fork repo
  • Keep it sync'ed while you are developing

Automatic (VS Code)

Open in Remote - Containers

Follow the instructions in the contributing guide, which will describe how to use the dev container that will automatically setup a suitable environment.

Manual

  • Install pyenv to install a suitable python version.
  • Launch docker jira server
    • docker run -dit -p 2990:2990 --name jira addono/jira-software-standalone

tox envs

  • Lint
    • tox -e lint
  • Run tests
    • tox
  • Build and publish with TWINE
    • tox -e publish

Jira REST API Reference Links

When updating interactions with the Jira REST API please refer to the documentation below. We aim to support both Jira Cloud and Jira Server / Data Center.

  1. Jira Cloud / Jira Server (main REST API reference)
  2. Jira Software Cloud / Jira Software Server (former names include: Jira Agile, Greenhopper)
  3. Jira Service Desk Cloud / Jira Service Desk Server

Credits

In addition to all the contributors we would like to thank to these companies:

  • Atlassian for developing such a powerful issue tracker and for providing a free on-demand Jira instance that we can use for continuous integration testing.
  • JetBrains for providing us with free licenses of PyCharm
  • GitHub for hosting our continuous integration and our git repo
  • Navicat for providing us free licenses of their powerful database client GUI tools.
https://raw.githubusercontent.com/pycontribs/resources/main/logos/x32/logo-atlassian.png https://raw.githubusercontent.com/pycontribs/resources/main/logos/x32/logo-pycharm.png https://raw.githubusercontent.com/pycontribs/resources/main/logos/x32/logo-navicat.png

More Repositories

1

ansi2html

Convert text with ansi color codes to HTML
Python
387
star
2

python-vagrant

Python bindings for interacting with Vagrant virtual machines.
Python
258
star
3

pyrax

The Python SDK for the Rackspace Cloud
Python
237
star
4

tendo

Official repository of python tendo library, always welcoming new contributions.
Python
144
star
5

confluence

Confluence Python API, please check ticket below πŸ†˜
Python
140
star
6

mk

mk ease contributing to any open source repository by exposing most common actions you can run. Inspired by make, tox and other cool tools!
Python
91
star
7

ruyaml

ruyaml is a openly maintained fork of elusive ruamel-yaml package that can be used as as a drop-in replacement.
Python
73
star
8

django-alexa

Amazon Alexa Skills Kit integration for Django -- ARCHIVED contact @ssbarnea if you can resurrect it.
Python
69
star
9

subprocess-tee

A subprocess.run drop-in replacement that supports a tee mode, being able to display output in real time while still capturing it. No dependencies needed
Python
45
star
10

python-crowd

A python client to the Atlassian Crowd REST API. ❗️seeking-new-maintainer
Python
45
star
11

enrich

Enrich adds few missing features to the wonderful rich library.
Python
28
star
12

phoebian

The missing tools for managing Atlassian ones, better daemons, automatic software updater.
Shell
23
star
13

selinux

Pure-python selinux shim module for use in virtualenvs
Python
19
star
14

activedirectory

ActiveDirectory / AD / LDAP Servers user Pure Python.
Python
16
star
15

rmux

rmux allows you to run your local project on multiple remote machines in parallel
Python
9
star
16

pyversion

Python package versioning made simple
Python
6
star
17

meta

Repository used to organize everything around PyContribs Community itself.
6
star
18

powertape

A project that does nothing else than documenting Jenkins Pipelines usage.
Groovy
6
star
19

pia

PIA - Package Installer for Ansible with a KISS approach
Python
6
star
20

pys

Repository used to pre-build python enabled images for popular operating systems
Dockerfile
6
star
21

remotefilelog

Python
5
star
22

gri

Git/Gerrit Review Interface helps you manage change requests from multiple servers.
Python
4
star
23

python3-ldap

Python
4
star
24

ruamel-yaml

read-only git mirror from official hg repository. Mirroring is done via GHA from meta repository.
Python
4
star
25

zuul-lint

Zuul Config Linter
Python
4
star
26

pysample

pysample provides a simple and complete python package testing and deployment template.
Python
3
star
27

gh-pre

gh cli extension to help with project maintenance tasks such preparing releases.
Python
3
star
28

termatch

Python
2
star
29

ppinfo

Package to retrieve metadata about a local python project
Python
2
star
30

tender

Tool to help tending github repos: like managing labels
Python
2
star
31

zbr

Zuul Build Reproducer
1
star
32

devops-police

Python
1
star
33

proofit

ProofIt checks presence of specific PR labels in order to assure creation of meaningful release notes andwith and proper use of semantic versioning.
Python
1
star
34

a2h

Rewrite of ansi2html from scratch with a less-restrictive MIT licensing
Python
1
star
35

scheme8

A multi-purpose JSON/YAML scheme checker written in python and pre-commit compatible
Python
1
star