Transition Jira issue
For examples on how to use this, check out the gajira-demo repository
Note: this action requires Jira Login Action
Example transition action:
- name: Transition issue
id: transition
uses: atlassian/gajira-transition@master
with:
issue: GA-181
transition: "In progress"
}
The issue
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: atlassian/gajira-transition@master
with:
issue: ${{ steps.create.outputs.issue }}
transition: "In progress"
- None
issue
(required) - issue key to perform a transition ontransition
- Case insensetive name of transition to apply. Example:Cancel
orAccept
transitionId
- transition id to apply to an issue
- None
issue
transitionId
- None