Create an validator or condition to force all Epic child issues before closing it

Tiago Pereira
Contributor
July 18, 2023

I would like to create an validator or condition to force all the child issues (in this case Task) associated w/ the Epic parent ticket, before closing this one, is this possible?

I am able to use the rule of linked issues condition for subtasks but not child issue.

 

Note is for Jira-Cloud

3 answers

2 accepted

1 vote
Answer accepted
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.
July 18, 2023

Hi @Tiago Pereira 

You can use the Linked Issues Status Condition for that, have you tried?

Tiago Pereira
Contributor
July 18, 2023

Hello @David Fischer indeed the Linked issue status condition works for the Epic subtasks, but the the rule doesn't seem to apply to the child issues, in this case Task.

 

Please check the photos for better understanding

 

Screenshot 2023-07-18 141951.pngScreenshot 2023-07-18 142406.png

Like John Funk likes this
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.
July 18, 2023

Under Issue Link Type, you need to pick "is Epic of".

Like John Funk likes this
Tiago Pereira
Contributor
July 18, 2023

Hello @David Fischer it works, but I have to 2 different conditions to cover both subtasks & child issues:

- Child issues use Epic of

- Subtasks issues use is parent of

 

I guess because both have different relationships right?

Like John Funk likes this
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.
July 18, 2023

Correct. Unfortunately, Jira Expressions, which is the underlying technology that is used to build custom Conditions in third-party apps such as JMWE, doesn't currently support Jira Cloud's new unified issue hierarchy. It still separates the parent/subtasks relationship from the Epic/Story relationship.

For your use case, you'll need to use two conditions, one for each link type.

Tiago Pereira
Contributor
July 18, 2023

Thanks a lot for the support

0 votes
Answer accepted
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 18, 2023

Hi Tiago,

You will need an add-on such as JMWE or ScriptRunner to be able to do that. 

Tiago Pereira
Contributor
July 18, 2023

I have that available, could you please support?

Like John Funk likes this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 18, 2023

Which on are you using? I have limited experience with code like that for JWME, and none with ScriptRunner. 

Tiago Pereira
Contributor
July 18, 2023

I have both options availableScreenshot 2023-07-18 125331.png

Like John Funk likes this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 18, 2023
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.
May 19, 2024

Hi @Tiago Pereira 

It is now possible to test against all direct children of the issue - regular & subtasks in one condition/validator. For this particular case we developed Linked Issues Validator, which is part of the Workflow Building Blocks for Jira free app.

Here’s an example of how it looks:

community_05.19_children.png

I hope it will help.

Cheers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events