Hello,
I hope you are doing well!
I would like to create an validator in Jira Cloud - workflow for epic, that, if children are not done I cannot close the issue, this part i created with the scriptrunner validator, but it includes some issue types that are not relevant, ('Test', 'Test Execution', 'Test Plan', 'Precondition', 'Test Run'). How can I modify this validator to not include this issues, means that if I have them as a child, I will be able to close the issue!
issue.isEpic && issue.stories.every(story => ( story.status.name == 'Done' || story.status.name == 'Resolved' || story.status.name == 'Closed' || story.status.name == 'Mitigated' || story.status.name == 'Duplicate' || story.status.name == 'Defer' || story.status.name == 'Rejected') )
Thanks!
Regards,
David