robhurring / jira

Small Jira API experiment in elixir

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jira

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.

Installation

  1. Clone repo
  2. Run mix deps.get
  3. Follow the setup steps below.
  4. Run mix escript.build
  5. Move jira to anywhere in $PATH

Setup

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"

Usage

  • To run some ad-hoc jql: jira search "assignee = currentUser()" | jq .
  • To get a single issue: jira issue DEV-1 | jq .

About

Small Jira API experiment in elixir


Languages

Language:Elixir 97.9%Language:Vim Script 2.1%