Hi,
In one of our Jira cloud projects, we have multiple type of Epics which is defined by issue type - Epic & dropdown custom field "Epic Type".
The issue type "Story" is supposed to be a child item for only Epics with "Epic Type" - "Story Epic". Similarly, the issue type "Task" is supposed to be a child item for only Epics with Epic Type - "Task Epic".
But we are observing that some users are creating child items under Epics which are not in match with "Epic Type".
We are checking for possibilities to use "Script Runner Validator" in "Story" workflow to check if the Epic Link has "Epic Type" = "Story Epic". But I am getting errors when I am trying to use the script - issue.parentObject.epicType.name == "Story Epic".

Can Anybody help me in this please.
Thanks & reagrds,
Ganesh Kumar Vary