I have a Select List (single choice) 'customfield_10493' on an Initiative and a child Epic. The Parent Link field of the Epic references the parent Initiative. I'm using ScriptRunner in Jira cloud and would like to add a validator on a workflow transition of the Epic that ensures the value of customfield_10493 matches the value of the same field on the parent Initiative.
The thread ScriptRunner Validator - Validate field from parent looks like it would work, but it generates the error "Jira expression failed to parse: line 1, column 1: expression expected, reserved keyword 'import' encountered.".
How can I validate that the field value on the child matches the field value on the parent when the child transitions?
Thanks in advance!