💦 a JIRA CLI (command line interface) to dump a summary of the state of the current sprint. Uses the go-jira library.
https://github.com/go-jira/jira
You need to install Python 3
on your machine.
Use the Windows Installer (64 bit)
from the official Python site:
https://www.python.org/downloads/windows/
sh
is required for the python script.
Download from https://gitforwindows.org/
The scripts in this project assume that the locations of python
and sh
are included in the PATH
environment variable.
-
create the API token via the Jira website
- click on your avatar
- select Account settings
- select Security
- Under API Token, select Create and manage API tokens
- select Create API Token
- give the token an appropriate name
- copy the token value
-
configure Go-Jira (see ref section above) for endpoint, user, project - this is the
.jira-d/config.yml
filenote: you need to remove the curly brackets.
-
create a script to set JIRA_API_TOKEN
This script will store the token value you received in step 1
Create a text file named
set-jira-api-token-env-var.bat
The content needs to be as follows, but with the value of the token inserted:
@ECHO OFF SET JIRA_API_TOKEN={token value}
note: you need to remove the curly brackets.
-
run the script
set-jira-api-token-env-var.bat
-
login
Open a
cmd
command line prompt (NOT PowerShell) at this README location.jira session
-
run the test script (it is only reading, not writing!)
This is to check everything is setup OK.
This script dumps a text report of the current sprint status, with stories + bugs ranked and grouped by status.
test_dump_current_sprint_state_sos.bat
-
basic execution
go.bat <sprint name> <sprint goals> [OPTIONS] OPTIONS: -m -o
note: currently, the built-in help is for the internal script parse_current_sprint_issues.py
.
It is recommended that you instead use the provided go.bat
script.
-
try option -m
The
-m
markdown option:go.bat "Sprint 123" "Sprint Goal A, B and C" -m
This formats the output using markdown notation.
-
try option -o
The
-o
omit stretch issues option:go.bat "Sprint 123" "Sprint Goal A, B and C" -o
This looks for a 'marker' issue that has summary containing text like
===
. Only issues that rank higher than this marker are included in the output. -
(optional) get the text output to your clipboard, using the clip command line tool
Simply append | clip
to the command.
Example:
go.bat "Sprint 123" "Sprint Goal A, B and C" | clip
Sprint 123 - goal: Sprint Goal A, B and C
Done:
- [IP-1234] Implement feature X
- [IP-1235] Implement feature Y
In Progress:
- [IP-2001] Fix the button A
- [IP-2002] Fix the button B
To Do:
- [IP-2003] Fix the button C
- [IP-2004] Fix the button D
Dependencies/Impediments: None