How do Workflow Validators work inside of ScriptRunner for Jira Cloud

The ScriptRunner for Jira Cloud plugin provides workflow Validators using the Jira Expression Framework as documented in the Atlassian API documentation page located here or in the documentation page located here which explains how to add in a new validator to your workflow.

We can confirm that when viewing the Jira Expression Framework API documentation page linked above you can navigate to the Context variables section which shows what variables are provided by this framework that can be used to create the expression.  If you then click on one of the variables it will show all the properties that can be called on the variable for the expression such as for the issue variable as shown here.

We can also confirm we have some examples of validators that can be used as a reference guide in the page located here as well as in the documentation page located here.

We would recommend using these documentation pages linked above as a reference guide to help to create the validator expression that you require.