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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.