Workflow Restrictions
Learn how to add, edit, and delete ScriptRunner expression-based rules that control when a workflow transition is available to users.
You define a Jira expression that must be true before users can see or use a transition, so you can hide or block steps unless certain conditions are met (for example, field values, status, or user group). This helps you enforce business rules directly in the workflow editor without writing a full script.
Atlassian has updated its workflow terminology as part of the new workflow editor experience. Some names and concepts may differ from what you're used to in the classic editor. For a detailed description of the changes, refer to Atlassian's official workflow documentation.
Supported spaces
Workflow rules are available in company-managed spaces only. Team-managed spaces are not currently supported.
ScriptRunner's workflow rules do not appear as options when you edit a team-managed workflow, so you cannot add them there.
Create an expression-based workflow restriction
You can restrict transitions using Jira expressions:
Edit an expression-based workflow restriction
Use these steps to modify an existing expression‑based workflow restriction:
Delete an expression-based workflow restriction
To remove an expression-based workflow restriction from a transition: