Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Want a validator for an Epic to transition to Done only if all children are Done or Canceled

Jyoti Patel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 24, 2025

We are using JIRA Cloud.  We Want a validator for an Epic to transition to Done only if all children are Done or Canceled.

- Epic should not allow transition to Done if I have a child ticket In Progress.

- Epic should move to Done if all children are either Done or Canceled.

 

We used a Validator, and it does not work. 

2 answers

0 votes
Maciej Dudziak _Forgappify_
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.
April 25, 2025

Hi @Jyoti Patel

For this exact case our team developed the Linked Issues Validator available as part of the Workflow Building Blocks for Jira app. With a wizard-like UI, you can select options that represent your case. You can choose relations from: sub-tasks, parent issues, epic children, and linked issues. Additionally, you can filter relations by issue types and select criteria based on status category and status. 

Our validators have a Jira expression preview feature, which can help you learn the correct syntax. This is how it looks for your case:

communuty_25.04.25.jpg

Probably the only fix you need is changing issue.children.every to issue.childIssues.every.

Full disclosure: I am from Forgappify, the vendor of the app.

Cheers

 

 

Mikael Sandberg
Community Champion
April 25, 2025

@Maciej Dudziak _Forgappify_ question for you regarding the app. Is the "Linked Issues Validator" run after the user clicks the submit/transition button, or does it prevent you/not showing the transition until the child work items are fulfilling the condition?

Maciej Dudziak _Forgappify_
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.
April 25, 2025

The app comes with both: 

  • Linked Issues Condition
  • Linked Issues Validator

Condition hides the transition, validator prevents the transition (also create) and prompts user why the issue cannot be transitioned

Like Mikael Sandberg likes this
0 votes
Mikael Sandberg
Community Champion
April 24, 2025

Hi @Jyoti Patel,

What you are looking for is a condition, not validator. Conditions prevents users from transition work items if the condition is not fulfilled. Out of the box Jira only have a condition that can block the transition depending on the status of sub tasks. In order to do it based on issues linked to an epic you need an app from the Marketplace in order to do this. At a previous job I used scriptrunner to do this.

Jyoti Patel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 24, 2025

Thank you Mikael.  Appreciate the quick response.

We are using a JMWE (JIRA Misc Workflow Extenstions).  We created the following.  But either a logic issue or something....

 

issue.children.every(child => child.status.name == "Done" || child.status.name == "Canceled")

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events