Prevent a epic to close when child stories are not closed

Wilson Nicolás Andrés Pérez Cubillos September 11, 2023

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?.

 

 

1 answer

0 votes
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 11, 2023

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')
Wilson Nicolás Andrés Pérez Cubillos September 11, 2023

Hello David, I've also try these:

issue.isEpic && issue.stories.filter(story => story.status.category.name == 'Done').length == issue.stories.length 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events