Skip to content

Instantly share code, notes, and snippets.

@dustinknopoff
Created June 26, 2019 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dustinknopoff/8dcd441a47be8416553da1d77267d3d9 to your computer and use it in GitHub Desktop.
Save dustinknopoff/8dcd441a47be8416553da1d77267d3d9 to your computer and use it in GitHub Desktop.
Ideal go-jira template for use in tmux setup
{{$w := sub termWidth 200 -}}
{{ range .issues }}{{color "green+bh"}}{{.fields.issuetype.name | printf "%-12s" }}{{color "reset"}} {{color "yellow+bh"}}{{ .key | append ":" | printf "%-12s"}}{{color "reset"}} {{ .fields.summary | abbrev (sub $w 2) | printf (printf "%%-%ds" (sub $w 18)) }} {{color "blue+bh"}}{{if .fields.assignee }}{{.fields.assignee.name | printf "%12s" }}{{else}}<unassigned>{{end}}{{color "reset"}}
{{ end }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment