Giter Club home page Giter Club logo

jira-tools's Introduction

jira-tools

Useful CLI tool for interacting with JIRA instances through python

Usage

python3 jira_tools.py action -p PROJECT [-j <jira_url>] [-w <weeks>]

Provides some basic functionality to connect to Jira and extract information for analysis of Jira project issues.

Reads connection credentials from the users .netrc which should contain a machine entry like the following:

machine <jirahost>
    login <username>
    password <password>

Required Arguments

action <issue_history | weekly_throughput >

action description
issue_history print issues transition details as plain text output to stdout
weekly_throughput export weekly throughput of Stories and Tasks for the last <n> weeks (default n = 4)

-p|--project PROJECT the jira project id

Optional Arguments

-h|--help Print a help message and exit

-j|--jira <jira_url> url of the JIRA instance to connect to, defaults to http://localhost:2990/ which is the url used by the Development JIRA from the Atlassian SDK

-w|--weeks <weeks> number of weeks to count back, defaults to four weeks

Examples

Here are some examples of the actions available and the output they create

Issue History

python3 jira_tools.py issue_history -p PROJECT -j <jira_url>

Running jira-tools

 PROJECT-39 Bug
         25/07/2019 09:31 Created
         26/07/2019 04:03 Status In Progress
         26/07/2019 04:03 Status Review
         29/07/2019 04:03 Status Done

 PROJECT-38 Story
         22/05/2019 04:43 Created
         17/06/2019 08:12 Status Backlog
         17/06/2019 08:19 Status To Do
         18/06/2019 05:09 Status Ready
         23/06/2019 11:27 Status In Progress
         05/07/2019 03:25 Flagged Impediment
         10/07/2019 04:04 Unflagged
         11/07/2019 03:10 Status Review
         11/07/2019 03:14 Status Done

 PROJECT-113 Task
         11/07/2019 07:04 Created
         11/07/2019 07:05 Status In Progress
         22/07/2019 11:20 Flagged Impediment
         25/07/2019 03:13 Unflagged
         25/07/2019 08:15 Status Review
         26/07/2019 03:38 Status Done

Weekly Throughput

python3 jira_tools.py weekly_throughput -w 6 -p PROJECT -j <jira_url>

Running jira-tools
Total stories completed to date: 33
Completed stories so far this week 1
weekly totals for the last 6 weeks
Last week  10
Two weeks ago 3
Three weeks ago 6
Four weeks ago 7
Five weeks ago 1
Six weeks ago 2

jira-tools's People

Contributors

gordonmcmullan avatar

Stargazers

Ruby Perez avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.