Workflow validator to enforce Epics with Done status

Etai Leers July 6, 2023

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 => == 'Done' || == 'Feature Validation')

Anyone know how to make this validator work?

2 answers

1 accepted

0 votes
Answer accepted
Ram Kumar Aravindakshan _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 2, 2023

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:- == 'Initiative' && issue.links.filter(L=> "Epic").length ==
( issue.links.filter(issue => == 'Done').length +
 issue.links.filter(issue => == '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,


0 votes
Floating electron
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 17, 2024

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.


Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events