This is a project to query JIRA via cli and return json, csv or tsv data as a result of the search.
The project has a web interface that can also query JIRA and return data graphs and reports.
To get started you'll need to have the following requirements installed
- Git
- Node.js 6.0.0 or greater1
- npm
1See https://nodejs.org/
- npm install -g jira-miner 2
2 See https://www.npmjs.com/package/jira-miner
git clone <this repo>
cd into the new directory
npm install
node app
Returns
http://localhost:8000
Which takes you to the Welcome screen.
Node setup login into Jira and download a local copy of the project
node setup
Node kujira allows you to build searches against the downloaded project
node kujira
Initial setup run
$ node setup
Enter username, password and url e.g. "issues.jboss.org"
-->:Enter your Jira Username: enterUserName
-->:Enter your Jira password: *********
-->:Enter Jira URL e.g. "issues.jboss.org": issues.jboss.org
Command-line input received:
username: enterUserName
password: ********
url: https://issues.jboss.org
stdout: { url: 'https://issues.jboss.org', user: 'enterUserName' } 'Successfu
lly targeted JIRA'
-->:Enter the project name e.g. "RHMAP or RAINCATCH": RAINCATCH
project: RAINCATCH
Stand alone query run
$ node kujira
Enter format either json or csv ,enter for default tsv : json
Enter the field you wish to search for : Assignee
Enter the value you wish to search for : "Austin Cunningham"
Enter "y" quit or enter to continue :
You need Jira credendials to run the tests. You need to update
/kujira/test/fixtures.json.validUser
with valid credentials before running tests.
"validUser":{
"username": "InsertValidUsername",
"password": "InsertValidPassword",
"url": "issues.jboss.org"
},
Run tests
`npm test`
See API.md for details.