- Prereqs
- Configuration
- Can I Perform Actions in Bulk?
- Is there a test instance where I can try these scripts out?
-
Make sure you've
brew
installed. -
Install
go-jira
using brew:brew install go-jira
Notes: Tested with go-jira: stable 1.0.27
-
Prepare your local configuration file:
mkdir ~/.jira.d cat <<EOM >~/.jira.d/config.yml endpoint: https://jira.mycompany.com EOM
-
Now use
jira login
to authenticate yourself as $USER. To change your username, use the -u CLI flag or set user: in your config.yml
A sample config file is provided for you here.
To learn about custom-commands and scripts, read here.
A few scripts for common use-cases are available which can help you perform actions in bulk. Feel free to create PRs to add other use-cases.
A sample aliases file is provided here. To test them out run source sample/source_aliases.sh
in terminal. To load this by default every time, add that command to your $HOME/.zshrc
or $HOME/.bashrc
file. Make sure to use the full path to the file.
If you want to test the scripts in a demo environment before running it against your main JIRA board, you can setup your own local JIRA instance using Docker within minutes. (You'll need to activate a JIRA trial but don't worry once you run the container, JIRA will guide you through.)
Here's the link to the Official JIRA Image by Atlassian.