• Stars
    star
    242
  • Rank 163,424 (Top 4 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created over 8 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Interactive JIRA cli tool, based around go-jira and termui

go-jira-ui

go-jira-ui is an ncurses command line tool for accessing JIRA.

Screenshot showing issue list from ad-hoc query

It is built around the excellent go-jira and termui libraries.

It aims to be similar to familiar tools like vim, tig, and less.

In order to use this, you should configure an 'endpoint' as per the go-jira documentation:

$ cat ~/.jira.d/config.yml
---
endpoint: https://jira.example.com/
user: bob   # if not same as $USER

This should be all that's needed to get going.

Installation

# Make sure you have GOPATH and GOBIN set appropriately first:
# eg:
#   export GOPATH=$HOME/go
#   export GOBIN=$GOPATH/bin
#   mkdir -p $GOPATH
#   export PATH=$PATH:$GOBIN
go get -v github.com/mikepea/go-jira-ui/jira-ui

Dockerised use

docker run --rm -it -v /path/to/.jira.d:/config pmjohann/go-jira-ui

Features

  • Supply your own JQL queries to view
  • Label view of a given query, to see categorisations easily
  • Sorting of queries; supply your own custom sorts
  • View tickets from the query
  • Drill into sub/blocker/related/mentioned tickets in details view
  • Show open tickets in an Epic.
  • Basic compatibility with go-jira commandline and options loading
  • Label adding/removing
  • Comment, watch, assign and take implemented via :-mode commands

At present, edit will exit after the update. This is a workaround to an implementation issue, being tracked in #8

Usage

jira-ui is intended to mirror the options of go-jira's jira tool, where useful:

jira-ui             # opens up in Query List page. Default interface.
jira-ui ISSUE       # opens up Ticket Show page, with ISSUE loaded
jira-ui ls -q JQL   # opens up Ticket List page, with results of JQL loaded.
jira-ui -h          # help page

Basic keys

Actions:

<enter>      - select query/ticket
r            - mark ticket for ranking (use naviation to change rank, <enter> to submit)
L            - Label view (query results page only)
E            - Edit ticket
S            - Select sort order (query results page only)
w            - Watch the selected ticket
W            - Unwatch the selected ticket
v            - Vote for the selected ticket
V            - Remove vote on the selected ticket
N            - Next ticket in results
P            - Previous ticket in results
h            - show help page

Commands (like vim/tig/less):

:comment {single-line-comment} - add a short comment to ticket
:label {labels}                - add labels to selected ticket
:label add/remove {labels}     - add/remove labels to selected ticket
:take                          - assign ticket to self
:assign {user}                 - assign ticket to {user}
:unassign                      - unassign ticket
:watch [add/remove] [watcher]  - watch ticket (optionally as a different user)
:vote                          - vote for the selected ticket
:unvote                        - remove vote for the selected ticket
:view {ticket}                 - display {ticket}
:query {JQL}                   - display results of JQL
:search|so {text}              - quick search for {text} in open tickets
:search-all|sa {text}          - quick search for {text} in all tickets
:spo {project} {text}          - quick search for {text} in open {project} tickets
:spa {project} {text}          - quick search for {text} in all {project} tickets
:help                          - show help page
:<up>                          - select previous command
:quit or :q                    - quit

Searching:

/{regex}                       - search down
?{regex}                       - search up

Navigation:

up/k         - previous line
down/j       - next line
C-f/<space>  - next page
C-b          - previous page
}            - next paragraph/section/fast-move
{            - previous paragraph/section/fast-move
n            - next search match
g            - go to top of page
G            - go to bottom of page
q            - go back / quit
C-c/Q        - quit

Configuration

It is very much recommended to read the go-jira documentation, particularly surrounding the .jira.d configuration directories. go-jira-ui uses this same mechanism, so can be used to load per-project defaults. It also leverages the templating engine, so you can customise the view of both the query output (use 'jira_ui_list' template), and the issue 'view' template.

go-jira-ui reads its own jira-ui-config.yml file in these jira.d directories, as not to pollute the go-jira config. You can add additional queries & sort orderings to the top-level Query page:

$ cat ~/jira.d/jira-ui-config.yml:
sorts:
  - name: "sort by vote count"
    jql:  "ORDER BY votes DESC"
queries:
  - name: "alice assigned"
    jql:  "assignee = alice AND resolution = Unresolved"
  - name: "bob assigned"
    jql:  "assignee = bob AND resolution = Unresolved"
  - name: "unresolved must-do"
    jql:  "labels = 'must-do' AND resolution = Unresolved AND ( project = 'OPS' OR project = 'INFRA')"

Learning JQL is highly recommended, the Atlassian Advanced Searching page is a good place to start.

More Repositories

1

puppet-module-mcollective

Puppet module for mcollective
Ruby
20
star
2

awk_tawk

Lightning talk on how awe[k]some AWK is, in particular a review of The AWK Programming Language
HTML
16
star
3

vectrex-minestorm

Vectrex Mine Storm game, via http://roadsidethoughts.com/vectrex/mine-storm.htm. With build env.
Assembly
5
star
4

vectrex-playground

Vectrex Vagrant devbox, AS09 assembler, tutorial code, and one day my own noodlings.
Assembly
5
star
5

tessen

Tessen is a terminal based Uchiwa/Sensu interface, in golang, based on termui
Go
5
star
6

white-night-kit

Code for a IR+RGB badge that can talk to other badges
C
3
star
7

buildbrighton-ir-badge

Code for our IR+RGB badge that can talk to other badges
C
3
star
8

scalexercise-controller

Arduino sketch for a device replacing up to 6 Scalextric SSD throttle controllers
Arduino
2
star
9

unity-spherical-pacmon

Full 'pac-game' rendered onto a sphere, for use in a 4-projector spherical projection system
C#
2
star
10

github-test

Testing GitHub
2
star
11

swm49-topic

SWM49 JMS topic example code
Java
2
star
12

tcp-over-led-strip

Use neopixel LED strips to emulate a 300 baud null modem cable.
Arduino
1
star
13

maventut

Maven Tutorial, from https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
Java
1
star
14

uni-swm-51-ejb30-stateful-ejb

Java
1
star
15

puppet-module-apache

Apache Puppet Module
1
star
16

swm49-project

SWM49 Assignment code and documentation
Java
1
star
17

puppet-module-openldap

1
star
18

byron_remote_sockets_controller

Arduino sketch for controlling the 12-socket remote for Byron wireless power sockets
Java
1
star
19

marklogic_training_hansard

Hansard dataset training session
XQuery
1
star
20

activemq-debian

Debian packaging for activemq
1
star
21

uni-swm-51-connpool

1
star
22

swm50-project

Ruby
1
star
23

BB_mega_monitor_station

Arduino sketch for BuildBrighton's server-attached arduino board
Java
1
star
24

uni-swm-51-helloejb

MSc SWM51 helloejb workshop
Java
1
star
25

uni-swm-51-ejb30-stateless-ejb

Java
1
star
26

git_unit_test

Simple, but consistent repo for unit testing Git functionality against.
1
star
27

puppet-module-puppet

My (crappy) Puppet deployment module.
Ruby
1
star
28

uni-swm-51-ejb30-entity-ejb

Java
1
star
29

buildbrighton-mcu-programming-workshop

BuildBrighton Atmel ATtiny Microcontroller Workshop code
C
1
star
30

pkg-puppet-debian

Fork of git://git.debian.org/git/pkg-puppet/puppet.git
Ruby
1
star
31

rbot

Personal fork of git://ruby-rbot.org/rbot.git
Ruby
1
star
32

puppet-module-common

My commonly used puppet and facter code, largely based on David Schmitts module
Ruby
1
star
33

uni-swm-51-helloworld

MSc SWM51 helloworld Servlet
Java
1
star
34

solr_numdocs

Pull numDocs value from SOLR via luke interface
Ruby
1
star
35

swm49-queue

SWM49 JMS queue
Java
1
star
36

test-tower

Testing GitHub create in Tower
1
star