- Copy/Paste the function defined in
jira.shin you.bash_profileor.bashrc - Export
JIRA_ROOTvariable in your environemnt (most likely in your.bash_profile/.bashrcas well) :export JIRA_ROOT='https://jira.yourdomain.com/'
jira [issue]
Without any parameter, it check if you're currently in a git repository and opens either the JIRA issue named by the current branch name or JIRA root domain. When a parameter is provided, opens the JIRA issue named by the parameter.
I often use it along with the handy
jira2mdfunction bellow, so I canjira2md | pbcopyand then paste the markdown link directly in a github comment for example.