How to transition a Jira issue using Jira Command Line Interface (CLI)

This article explains how transition a Jira issue using the Jira CLI app.

Instructions

Use the transitionIssue action to transition the issue from one state to another through the workflow with the issue and transition parameters where: 

  • issue - Specifies the Jira issue number;
  • transition - A transition is a link between two statuses that enables an issue to move from one status to another. In order for an issue to move between two statuses, a transition must exist. 
  • status - A status represents the state of an issue at a specific point in your workflow. When defining a status, you can optionally specify properties.
  1. Select a Jira issue to be transitioned. For this example, consider the following Jira issue in the REOPENED state:

  2. Execute the given CLI action to transition the Jira issue. For the given example, let's transition the Jira issue from REOPENED to CLOSED. Note that this transition happens only if there is a transition from REOPENED to CLOSED state configured in the respective workflow. 

    --action transitionIssue --issue "DPT-1" --transition "close"


    You can see from the following screenshot that the Jira issue is in CLOSED state now:


  • A status represents the state of an issue at a specific point in your workflow. When defining a status, you can optionally specify properties.
  • A transition is a link between two statuses that enables an issue to move from one status to another. In order for an issue to move between two statuses, a transition must exist.

From the following screenshot, CLOSED is a status and Close is a transition.