- Copy/Paste the function defined in
jira.sh
in you.bash_profile
or.bashrc
- Export
JIRA_ROOT
variable in your environemnt (most likely in your.bash_profile
/.bashrc
as 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
jira2md
function bellow, so I canjira2md | pbcopy
and then paste the markdown link directly in a github comment for example.