Transition Jira issue
This action is based on code from https://github.com/atlassian/gajira-transition and was forked to add these features:
- support for multiple issues
Note: this action requires Jira Login Action
Example transition action:
- name: Transition issue
id: transition
uses: mat-technology/jira-issue-transition@master
with:
issues: RPR-181
transition: "In progress"
}
The issues
parameter can be an issue id created or retrieved by an upstream
action – for example,
Create
or Find Issue Key
. Here is full example
workflow:
on:
push
name: Test Transition Issue
jobs:
test-transition-issue:
name: Transition Issue
runs-on: ubuntu-latest
steps:
- name: Login
uses: atlassian/gajira-login@master
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
- name: Create new issue
id: create
uses: atlassian/gajira-create@master
- name: Transition issue
uses: mat-technology/jira-issue-transition@master
with:
issues: ${{ steps.create.outputs.issue }}
transition: "In progress"
- None
issues
(required) - list of issue keys to perform a transition on, as list or comma/space separated stringtransition
- Case insensitive name of transition to apply. Example:Cancel
orAccept
transitionId
- transition id to apply to an issue
- None
issue
transitionId
- None
After making any changes to the code, you need to rebuild dist/index.js by doing:
ncc build index.js