JIRA command line interface written in NodeJS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Initial configuration of eslint Mar 23, 2018
bin
lib Feature: new action which allow user to open issue link in browser Jan 1, 2019
test Feature: new action which allow user to open issue link in browser Jan 1, 2019
types Mapper: add link to Issue.d.ts Jun 5, 2018
.eslintrc
.gitignore Initial commit Feb 27, 2018
.npmrc Chore: prevent generate of package-lock.json Dec 31, 2018
LICENSE
README.md Feature: fetch all my issues alias (fix #9) May 24, 2018
package.json 1.2.0 Jan 1, 2019

README.md

JIRA CLI   Build Status   Tweet

Usage: jira [options] [command]

Options:

  -h, --help                output usage information

Commands:

  create-issue              Create new issue
  issue-link [issueName]    Copy issue link to clipboard
  issue-status [issueName]  Show issue status
  issue [issueName]         Show issue details
  jql [jql]                 Show issues using JQL
  all                       Alias => jira jql ''
  my-issues                 Alias => jira jql 'assignee in (currentUser()) ORDER BY status ASC'
  my-not-released           Alias => jira jql 'status not in (Released) AND assignee in (currentUser()) ORDER BY status ASC'
  my-stage                  Alias => jira jql 'status in ('Deployed to Stage') AND assignee in (currentUser()) ORDER BY status ASC'
  sprint                    Alias => jira jql 'sprint in openSprints() ORDER BY status ASC'
  stage                     Alias => jira jql 'status in ('Deployed to Stage') ORDER BY status ASC'

jira-all

jira-issue

Tips

Commands like jira all, jira my-not-released are implemented as aliases. I'm planning to allow user to create his own aliases but currently there is a few hardcoded, so you may meet error like:

JIRA respond with '400 Bad Request' status.
ERROR MESSAGE:
The value 'Released' does not exist for the field 'status'.
Please try again later

As a workaround please use plain jira jql queries, for example:

jira jql 'project=ABC AND status in (New)'
jira jql 'assignee in (currentUser()) ORDER BY status ASC' 
jira jql 'project=XYZ AND assignee in (currentUser()) ORDER BY status ASC'                                                                                                                                                       	.

Install

npm install -g jira-node-cli

Usage

Type:

jira

and you will be asked about credentials to your JIRA account. Credentials will be saved in ~/.jirarc file.