CLI tool for Jira x GitLab automation.
# install globally: npm i -g @shelf.network/jira-cli #install as a dev dependency npm 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 domain export JIRA_USERNAME="..." # your Jira username export JIRA_TOKEN="..." # Jira API token, get it here: https://id.atlassian.com/manage/api-tokens 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" column jira-cli transition "[SHF-1, SHF-2] Moderate Bucket" # the issues go to "In Review" column jira-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"