Updated by
Modified
ScriptRunnerforJiraCloudExampleWorkflowValidatorss.groovy- Ignore whitespace
// Validate that a checkbox custom field contains a specic value as an option and that a single line text field is not empty
// Note: You should replace 'customfield_12345' in the example below with the ID of the checkbox field and should replace "A" with the option value to validate against
// Note: You should replace 'customfield_56789' in the example below with the ID of the single line text field that must not be empty
-issue.customfield_12345.map(c => c.value).filter(value => value == "A").length > 0 && issue.customfield_56789 != null
+issue.customfield_12345.map(c => c.value).filter(value => value == "A").length > 0 && issue.customfield_56789 != null
+//You may also want to set the Error message to have text similar to 'You are not permitted to select the Highest Priority'