Skip to main content

A REST client for Atlassian JIRA

Project description

This is a python Jira command line interface.

Prerequisites:

python
python-yaml
python-restkit

Installation:

pip install jiraclient

Sample usage:

jiraclient -S 'Create an issue with this summary'
jiraclient --template epic.yaml

Templates:

Create a set of issues with a YAML formatted template file like this:

python jiraclient.py --template project.yaml

# -- project.yaml file
epic name: Epic Name
summary: This is an Epic
description: Epic description
stories:
- summary: s1 summary
description: story s1 has is a very long description for a jira story that will keep on going and going and going and going and going and going and going and going and going and going and going and going and going and going and going and going and going and going and going and going and going
timetracking: 1h
subtasks:
- summary: s1 st1 summary
description: s1 st1 description
timetracking: 30m
- summary: s1 st2 summary
timetracking: 30m
- summary: s2 summary
description: story s2 description
timetracking: 1h
subtasks:
- summary: s2 st1 summary
description: st 1 description
timetracking: 30m
- summary: s2 st2 summary
description: st 2 description
timetracking: 1h
- summary: s3 summary
description: story s3 description
timetracking: 1h
subtasks:
- summary: s3 st1 summary
description: s3 st 1 description
timetracking: 1h
- summary: s3 st2 summary
description: s3 st 2 description

General Usage

Usage: jiraclient.py [options]

Sample Usage:
- Standard issue creation in project named INFOSYS:
jiraclient.py -u 'username' -p 'jirapassword' -A 'auser' -P INFOSYS -T task -S 'Do some task'

- Get numerical Version IDs for Project named INFOSYS:
jiraclient.py -u 'username' -p 'jirapassword' -a getVersions INFOSYS

- Get numerical Component IDs for Project named INFOSYS:
jiraclient.py -u 'username' -p 'jirapassword' -a getComponents INFOSYS

- Create an issue with a specified Component and Fix Version
and assign it to myself:
jiraclient.py -u 'username' -p 'jirapassword' -A 'username' -P INFOSYS -Q major -F 10000 -C 10003 -T epic -S 'Investigate Platform IFS'


Options:
-h, --help show this help message and exit
--config=CONFIG Read configuration from this file
-a API, --api=API Call this API method
-c COMMENT, --comment=COMMENT
Comment text
-l LOGLEVEL, --loglevel=LOGLEVEL
Set the log level
--link=LINK Link two issues
--unlink=UNLINK Unlink two issues
--subtask=SUBTASK Make issue into a sub-task of another
--template=TEMPLATE Make a set of Issues based on a YAML template file
-n, --noop Parse bug file but don't connect to Jira
-u USER, --user=USER Jira user
-p PASSWORD, --password=PASSWORD
Jira password
-d, --display Display an existing given Jira issue ID
-i ISSUEID, --issue=ISSUEID
Jira issue ID (to modify)
-r REMAINING, --remaining=REMAINING
Jira issue time 'remaining estimate'
-t TIMETRACKING, --time=TIMETRACKING
Jira issue time 'original estimate'
-A ASSIGNEE, --assignee=ASSIGNEE
Jira assignee
-C COMPONENTS, --components=COMPONENTS
Jira project components, comma separated list
-D DESCRIPTION, --description=DESCRIPTION
Jira issue description text
-E ENVIRONMENT, --environment=ENVIRONMENT
Jira environment
-F FIXVERSIONS, --fixVersions=FIXVERSIONS
Jira project 'fix versions', comma separated list
-P PROJECT, --project=PROJECT
Jira project
-Q PRIORITY, --priority=PRIORITY
Issue priority name
-S SUMMARY, --summary=SUMMARY
Issue summary
-T TYPE, --type=TYPE Issue type
-U JIRAURL, --jiraurl=JIRAURL
The Jira URL
-V AFFECTSVERSIONS, --affecstVersions=AFFECTSVERSIONS
Jira project 'affects versions', comma separated list
--epic_theme=EPIC_THEME
Jira project 'Epic/Theme', custom field ID (eg.
customfield_10010)
--prefix=PREFIX Specify prefix text to prepend to all Issue summaries
--syslog Use syslog
-v, --version Version information

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

jiraclient-2.1.9.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jiraclient-2.1.9.macosx-10.11-x86_64.exe (77.6 kB view details)

Uploaded Source

File details

Details for the file jiraclient-2.1.9.tar.gz.

File metadata

  • Download URL: jiraclient-2.1.9.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jiraclient-2.1.9.tar.gz
Algorithm Hash digest
SHA256 bb16ee2ab8d9b041451de3207331a235f83cebd3947b6000b040de1763db9cc0
MD5 b8bd6f364c6fd89a372f6634d9b8c04f
BLAKE2b-256 45c7f6d02d40f76bad6684c98edea9148f53ff74b8da6f857b1ebc3962482057

See more details on using hashes here.

File details

Details for the file jiraclient-2.1.9.macosx-10.11-x86_64.exe.

File metadata

File hashes

Hashes for jiraclient-2.1.9.macosx-10.11-x86_64.exe
Algorithm Hash digest
SHA256 89e6a26c3fe60ecf4cf522c8701463ee646253a785835cf07cd0b62dbc498d29
MD5 0438d445aed1a0993c2e2e823b0421c5
BLAKE2b-256 ec496045ad393a17e2f91f5721c6e760b520e2da202cca380962c1235893df6f

See more details on using hashes here.

Supported by

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