Hello I'm trying prevent close an epic until the child are finished. I've have scriptrunner for cloud. I've fonud this condition but It doesn't work.
issue.isEpic && issue.stories.filter(story => story.status.name == 'Done').length == issue.stories.length
Does anyone knows another way to achieve this?.
Hi @Wilson Nicolás Andrés Pérez Cubillos ,
are you sure your definition of "finished" for the child issues is that they are in the "Done" status?
Note that you can simplify the Jira Expression:
issue.isEpic && !issue.stories.some(story => story.status.name != 'Done')
Hello David, I've also try these:
issue.isEpic && issue.stories.filter(story => story.status.category.name == 'Done').length == issue.stories.length
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.