Select JIRA issue without leaving the terminal.
In particular, can be used to simplify creating git branches by selecting the one of assigned issues
- put the binary to the PATH
- define settings
export JIRA_USER=username@company-domain
export JIRA_HOSTNAME=https://company-name.attlasian.net
export JIRA_API_KEY=private-api-key
- define custom git alias, for example, like this
.gitconfig
[alias]
...
jira="!f() { issue=$(jira-issue-selector); if [ ! $? = 0 ]; then exit 1; fi; git co -b "$issue"; }; f"
- enjoy :)
git jira
- Can be used along with the commit message hook