/
How to transition a Jira issue using Jira Command Line Interface (CLI)
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.
Select a Jira issue to be transitioned. For this example, consider the following Jira issue in the REOPENED state:
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.
Related content
How to enable status transition from Salesforce to Jira via Automation for Jira
How to enable status transition from Salesforce to Jira via Automation for Jira
More like this
Only Assignee can transition an issue
Only Assignee can transition an issue
More like this
Assign and transition an issue when it is escalated
Assign and transition an issue when it is escalated
More like this
transitionIssue
transitionIssue
Read with this
Status Change precondition
Status Change precondition
More like this
Previous Status condition
Previous Status condition
More like this