CLI tool for Jira x GitLab automation.
# install globally:npm i -g @shelf.network/jira-cli#install as a dev dependencynpm i -D @shelf.network/jira-cli
JIRA API Access
Jira connection options must be specified in the following env variables:
export JIRA_HOST="..." # your Jira domainexport JIRA_USERNAME="..." # your Jira usernameexport JIRA_TOKEN="..." # Jira API token, get it here:export JIRA_PROJECT_ID="2131231" # Get it from Chrome DevTools, hacker
Transition all issues associated with a merge requests:
jira-cli transition "WIP: [SHF-1, SHF-2] Moderate Bucket" # the issues go to "In Progress" columnjira-cli transition "[SHF-1, SHF-2] Moderate Bucket" # the issues go to "In Review" columnjira-cli transition --merged "[SHF-1, SHF-2] Moderate Bucket" # the issues go to "QA Pending" column
Create a Jira release, move all associated issues to "Done":
jira-cli release "Admin Panel" "v13.0.0"