Validate Details
A validate details rule is a powered-up version of a standard Jira validator. Instead of using one of the basic validators that you find in Jira, you can run a script to validate your work item. If the script returns false, it does not transition until all errors are resolved, for example, when all required fields are complete. Validate details rules enable administrators to specify the error message displayed to the user.
Remember, a validate details rule checks to see if the user can transition an work item. They don't prevent the next transition button from appearing. A Restrict transition gives you more options to control the workflow.
ScriptRunner for Jira Cloud provides workflow Validate details rules using the Jira Expression Framework. It is not possible to use the REST API.
There are several ways to enhance your workflow using the validate details option, as shown in Example Restrictions and Validators, including:
Require a Fix Version if the resolution value is set to Fixed.
Require a comment when the resolution is Won't Fix.
Ensure that at least one sub-task is In Progress if the resolution of the parent work item changes to In Progress.
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.
Add a Validate details rule
- Navigate to the Workflows menu from within Jira's settings. You will see Active and Inactive workflows displayed.
- Click Edit from the Actions ellipsis for your chosen workflow, and the workflow opens. You can choose to view the workflow as a diagram or text; we will use the former for this example.
- Select a transition from within the workflow diagram.
A list of associated workflow functions, including Restrict transition, Validate details, Perform action, Triggers, and Properties, is displayed for the selected transition. - Click Validate details > Add validate details rule.
Select the ScriptRunner Validate details using a Jira Expression option, then click Select.
Enter the Name of ScriptRunner Script validate details rule.
Enter the script expression in the ScriptRunner Script Validate details field. This script validate details rule must be written as a Jira expression.
Type an error message to show when the validation fails in Message to Show when Validation Fails.
Edit a Validate details rule
- Navigate to ScriptRunner > Workflows. All existing workflows are displayed as the default.
- Select Validate details from the Type drop-down list. You will now see a refined list displayed.
- Click the Actions ellipsis for your preferred workflow and select Edit.
- Edit the Validate details fields and click Save.


