Example Workflow Rules
CAUTION: Atlassian's new transition experience in Jira is being permanently rolled out in April 2025. As a consequence, how your Jira expressions ( Restrict transitions and Validate details) work will change. Check out our Breaking Changes section for more information.
Note: ScriptRunner for Jira Cloud provides several built-in workflow actions to help you get started with Workflows, and you can refer to our example custom scripts. You can also use one of the many Jira expression examples, which can be applied to either Restrict transitions or Validate details and on all transitions unless noted otherwise.
Example: Add a Perform actions workflow rule
By way of an example, if you would like to add a Perform actions rule to an existing Jira workflow, follow the steps below:
Edit a Perform Actions rule
You can edit the script for the Perform actions rule directly in the workflow, or quickly access it at any time via the Workflows tab in ScriptRunner for Jira Cloud.
Note: Remember, you can only view Workflows in ScriptRunner for Jira Cloud if you have already created a Restrict transition, Validate details or Perform actions rule from the Workflows within the Jira Administration menus. Once added within Jira, the workflow then appears in the Workflows section of ScriptRunner for Jira Cloud, where you can edit or disable it.