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.
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.