I got an issue type on a higher level then the "Epic" in the issue hierarchy.
This issue type may contain a few child Epics.
I would like to create a workflow validator (can be done using ScriptRunner) to enforce all the child Epics to be in Done status category, in order to move the parent issue to Done status.
I tried using the following script validator, but it didn't worked:
issue.epics.every(child => child.status.name == 'Done' || child.status.name == 'Feature Validation')
Anyone know how to make this validator work?
Hi @Etai Leers
Unfortunately, this is not doable at the moment.
I suggest looking through this Developer Community Discussion for more information.
However, if your Epic issues are not linked to the Initiative as Child issues, and instead standard link like is blocked by is, then you can try something like this:-
issue.issueType.name == 'Initiative' && issue.links.filter(L=> L.linkedIssue.issueType.name== "Epic").length ==
( issue.links.filter(issue => issue.outwardIssue.status.name == 'Done').length +
issue.links.filter(issue => issue.inwardIssue.status.name == 'Done').length
)
The alternative I can suggest would be to go through this Community Discussion.
I hope this helps to answer your question. :-)
Thank you and Kind regards,
Ram
Hi @Etai Leers
For this case we've developed the Linked Issues Validator available as part of the Workflow Building Blocks for Jira app. Starting today, it can also be used to test the children of Initiatives or other higher-level issue types.
Here’s an example of how it looks:
I would appreciate it if you could give it a try.
Cheers
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.