Restrict Transitions
A Restrict transitions rule is a workflow condition that extends the functionality of a basic Jira workflow condition. A restricted transition checks to ensure a requirement is met before a transition is made available to users. If the script returns false, the transition button is not available for a work item until the condition is met.
There are several ways to enhance your workflow using Restrict transitions, as shown in Example Restrictions and Validators, including:
- Allow a transition only if the summary starts with specified characters.
- Restrict transitions if certain fields are not populated.
- Enforce that the work item must have at least one PDF file attachment to transition.
- Allow only certain users to transition a work item.
ScriptRunner for Jira Cloud provides workflow Restrict transitions using the Jira Expression Framework. It is not possible to use the REST API.
Navigate to Context Variables to see the variables provided by this framework that can be used to create expressions. Click the variables to view the properties that can be called.