I got an issue type on a higher level then the "Epic" in the issue hierarchy.
This issue type may contain a few child Epics.
I would like to create a workflow validator (can be done using ScriptRunner) to enforce all the child Epics to be in Done status category, in order to move the parent issue to Done status.
I tried using the following script validator, but it didn't worked:
issue.epics.every(child => child.status.name == 'Done' || child.status.name == 'Feature Validation')
Anyone know how to make this validator work?