Skip to main content

command line utility for interacting with jira

Project description

Introduction

Simple command line utility to interact with your jira instance.

build status

Installation

  • with easy_install or pip:

    sudo easy_install jira-cli
    sudo pip install jira-cli
  • from source:

    git clone http://github.com/mig33/jira-cli
    cd jira-cli
    python setup.py build
    sudo python setup.py install
  • after installation, a few configuration steps will be prompted upon invoking jira-cli for the first time:

    ali@home ~ $ jira-cli
    base url for your jira instance (e.g http://issues.apache.org/jira):http://jira.yourdomain.com
    enter username:ali
    enter password:*********

    The details of your jira instance will be kept in ~/.jira-cli/config and the authentication token will be stored in ~/.jira-cli/auth. Once the authentication token has expired you will be reprompted for your username & password again. Alternatively you can provide the username and password on the command line as:

    ali@home ~ $ jira-cli --user=ali --password=sekret ...

Usage

A few examples to get started.

create an issue with only a title in project TP with default priority and type Bug:

ali@home ~ $ jira-cli -n Bug -t "Test Bug" --priority=Major -p TP
link                 : http://jira.yourdomain.com/browse/TP-24
assignee             :
summary              : Test Bug
issue                : TP-24
reporter             : ali

create an issue with priority Major and a description:

ali@home ~ $ jira-cli -n Bug -t "Test Bug" --priority=Major -p TP the description
link                 : http://jira.yourdomain.com/browse/TP-25
assignee             :
summary              : Test Bug
issue                : TP-25
reporter             : ali

list the issue TP-25:

ali@home ~ $ jira-cli TP-25
link                 : http://jira.yourdomain.com/browse/TP-25
assignee             :
summary              : Test Bug
issue                : TP-25
reporter             : ali

list the issues TP-20 & TP-21:

ali@home ~ $ jira-cli TP-20 TP-21
link                 : http://jira.yourdomain.com/browse/TP-20
assignee             : ali
summary              : test
issue                : TP-20
reporter             : ali

link                 : http://jira.yourdomain.com/browse/TP-21
assignee             :
summary              : Test Bug
issue                : TP-21
reporter             : ali

list the issues in short form:

ali@home ~ $ jira-cli TP-20 TP-21 TP-22 --oneline
TP-20 test < http://jira.yourdomain.com/browse/TP-20 >
TP-21 Test Bug < http://jira.yourdomain.com/browse/TP-21 >
TP-22 Test Bug < http://jira.yourdomain.com/browse/TP-22 >

add a comment to an existing issue:

ali@home ~ $ jira-cli -j TP-20 -c this is a new comment
this is a new comment added to TP-20

provide your own formatting:

ali@home ~ $ jira-cli TP-20 --format="%reporter, %summary, %status"

free text search for issues:

ali@home ~ $ jira-cli --search some random words

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

jira-cli-0.3.3.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

jira_cli-0.3.3-py2.7.egg (12.2 kB view details)

Uploaded Egg

File details

Details for the file jira-cli-0.3.3.tar.gz.

File metadata

  • Download URL: jira-cli-0.3.3.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jira-cli-0.3.3.tar.gz
Algorithm Hash digest
SHA256 028fc4c9dcb6e666c8f66aac494eed3b14816331b098cb4435939cfe5b215ea4
MD5 061c13e3c68ae559487966166168d25f
BLAKE2b-256 dc130565701876e6d6a46bf8d14ac6b8387143ade795f0a0aabf348d24445bea

See more details on using hashes here.

File details

Details for the file jira_cli-0.3.3-py2.7.egg.

File metadata

  • Download URL: jira_cli-0.3.3-py2.7.egg
  • Upload date:
  • Size: 12.2 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jira_cli-0.3.3-py2.7.egg
Algorithm Hash digest
SHA256 9ddc13fc7f6960947d93d9125e18b83cf1d38390079e26279d270a6dfe0e197d
MD5 bc11475ca68e602cc99705735080bb7b
BLAKE2b-256 5a6fe920cf0e8b0a8c72de5ffe190d27f02f3ed62377fc839213acf5986d7066

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