A web app for showing a group of related JIRA tickets as a graph.
Prerequisites:
- Install nodejs if you have done so. See below.
- Install json_reformat which is a part of jajl. See below.
- Install graphviz.
Setup and execution:
- Clone and cd to the repository.
- Run
npm install. - Create
scripts/apiurl.txtfile. See below for details. - Create
scripts/auth.txtfile. See below for details. - Run
scripts/download.sh. This downloads files to the /tmp/ directory. - Copy or move /tmp/file-*.txt files to the
issue_dbdirectory. - Run
node server.js. - Open
http://localhost:3001in your browser.
This file contains a single line containing the URL of the JIRA REST API. For example,
https://ldc-issues.jira.com/rest/api/2
This file contains JIRA username and password encoded in base64. The username and password should be combined with a colon. For example,
require base64
Base64.encode64("johndoe:secret").strip// using a browser javascript console
btoa("johndoe:secret")In the above examples, you should get am9obmRvZTpzZWNyZXQ=.
Linux distributions usually have a nodejs package, but I usually download a binary package from nodejs website and update my PATH variable with the bin directory of the unpacked package.
json_reformat comes with yajl. apt-get install yajl-tools installed it for me on
my debian machine.