Simple command line client for Atlassian's Jira service written in Go written by Netflix.
This setup is geared towards OSX.
brew install go-jira
Since we use a hosted Jira instance we need and API token:
- Go to url
- Login with Jira creds
- Go to
Security
tab - Click
Create and manage API tokens
link - Click
Create API Token
button - Provide a label/name in the popup -> click create
- Copy token to clipboard and save some place safe
You will need to following info:
- JIRA_URL
- JIRA_USER
- Your password/token
- Create
~/.jira.d/config.yml
if not already there - Add:
password-source: keyring endpoint: JIRA_URL user: JIRA_USER person: JIRA_USER@spreedly.com
Use jira session
to test your config and api key/password. Note that after the first prompt for your api key/password, it will be stored in the OSX keyring.
$ jira session
? Jira API-Token [JIRA_USER]: [? for help] ************************
op: Get
url: JIRA_URL/rest/auth/1/session
err: {}
jira list -q 'assignee = currentUser() AND resolution = Unresolved order by updated DESC'