Skip to content

Scripts to perform bulk actions on JIRA using `go-jira` brew package

License

Notifications You must be signed in to change notification settings

atinsinghal97/go-jira-add-ons

Repository files navigation

GO-JIRA Add-Ons

Prereqs

  1. Make sure you've brew installed.

  2. Install go-jira using brew:

    brew install go-jira

    Notes: Tested with go-jira: stable 1.0.27

Configuration

  1. Prepare your local configuration file:

    mkdir ~/.jira.d
    
    cat <<EOM >~/.jira.d/config.yml
    endpoint: https://jira.mycompany.com
    EOM
  2. 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.

Can I Perform Actions in Bulk?

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.

Script Template
Create Story Script Create Story Template
Create Subtask Script Create Subtask Template
Add Issue to Epic Script Add Issue to Epic Template
Add Same Label to Multiple Issues Script Add Same Label to Multiple Issues Template
Add Multiple Labels to Single Issue Script Add Multiple Labels to Single Issue Template
Add Distinct (Single) Labels to Multiple Issues Script Add Distinct (Single) Labels to Multiple Issues Template

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.

Is there a test instance where I can try these scripts out?

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.

About

Scripts to perform bulk actions on JIRA using `go-jira` brew package

Topics

Resources

License

Stars

Watchers

Forks

Languages