Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ScriptRunner validate custom field matches parent's value

KevinBridges
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 13, 2023

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!

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events