Skip to content

colabortory/gajira-transition

 
 

Repository files navigation

Jira Transition

Transition Jira issue

For examples on how to use this, check out the gajira-demo repository

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@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"

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%