Hey,
I came up with the examples for the scriptrunner workflow validator to prevent an Epic to be closed if the tasks are not 'done'.
I used this expression but if its active I cannot close the tasks anymore. Did I do something wrong?
issue.isEpic && issue.stories.filter(story => story.status.name == 'Done').length == issue.stories.length