Skip to content
atlassian

GitHub Action

Jira Issue Transition

v3 Latest version

Jira Issue Transition

atlassian

Jira Issue Transition

Change status of specific Jira issue

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Jira Issue Transition

uses: atlassian/gajira-transition@v3

Learn more about this action in atlassian/gajira-transition

Choose a version


⚠️ This repository isn’t maintained anymore.

Jira Transition

Transition Jira issue

Only supports Jira Cloud. Does not support Jira Server (hosted)

Usage

Note: this action requires Jira Login Action

Issue Transition

Example transition action:

- name: Transition issue
  id: transition
  uses: atlassian/gajira-transition@v3
  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@v3
      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@v3

    - name: Transition issue
      uses: atlassian/gajira-transition@v3
      with:
        issue: ${{ steps.create.outputs.issue }}
        transition: "In progress"

Action Spec:

Environment variables

  • None

Inputs

  • issue (required) - issue key to perform a transition on
  • transition - Case insensetive name of transition to apply. Example: Cancel or Accept
  • transitionId - transition id to apply to an issue

Outputs

  • None

Reads fields from config file at $HOME/jira/config.yml

  • issue
  • transitionId

Writes fields to config file at $HOME/jira/config.yml

  • None