Small experiment using httpoison and mapping some of the Jira REST API calls. Used as a small CLI script to run ad-hoc JQL from the command line and parse with a tool like jq
Not really too interesting.
- Clone repo
- Run
mix deps.get
- Follow the setup steps below.
- Run
mix escript.build
- Move
jira
to anywhere in$PATH
Modify the config.ex file or add the following to your shell environment:
export JIRA_HOST="https://mycompany.atlassian.net/rest/api/latest"
export JIRA_LOGIN="my.account"
export JIRA_PASSWORD="s3cr1t"
- To run some ad-hoc jql:
jira search "assignee = currentUser()" | jq .
- To get a single issue:
jira issue DEV-1 | jq .