Preventing an Epic from Closing Until All Children Are Closed

What would the quickest and easiest validator script to prevent an Epic from closing until all the children are closed?

Background

The following solution requires a SIL Validator. For more information on SIL Validators, see this documentation.

Solution

In this scenario, we would loop through all the children until we found one that is open. Once we do find one open, return false to the SIL Validator.

string jql = "\"Epic Link\" = " + key; string [] issues = selectIssues(jql);     for (string issue in issues) {     if (issue.status != "Done") {         return false, status, "You still have children of Epic " + key.#{Epic Name} + " open.";     } }

Additional Help

Need help implementing this script? Talk to me directly to me by clicking on the bot on this page.

Related articles

Filter by label

There are no items with the selected labels at this time.