Forums

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

How can I filter Issues & SubIssues in structure if and only if all are closed?

Max May 11, 2020

I have go an Epic A and Sub-Tasks B+C that are both listed in a Jira structure.

B+C is liseted underneath A.

How can I create a (S-)JQL filter that filters the Epic with its Sub-Tasks if all issues are in resolution 'Resolved' (A+B+C)?

If one issue (C) is still in progress the Epic (A) and its Sub-Tasks (B+C) should be visible in the structure.

I tried somthing like subIssueOrIssue in [resolution = unresolved] which did not work properly for this issue.

1 answer

1 accepted

1 vote
Answer accepted
Egor Tasa [ALM Works]
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 11, 2020

Hi Max,

The filter subIssueOrIssue in [resolution = unresolved] is correct, but you need to apply it at parent level only, because if one of the children is resolved, it contradicts the filter and disappears.

Please, let me know if this helps.

Regards,
Egor Tasa

ALM Works

Max May 11, 2020

Ah okay perfect!

I've got another problem now...

There is another issue D underneath the Epic A that should not be considered in the filter.

Example:

A+B+C is closed but D is open -> Epic A with its Sub-tasks C+D and also D should not displayed.

Do you have any idea? Thx!

Egor Tasa [ALM Works]
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 11, 2020

Hi Max,

You will have to distinguish D somehow, for example if it has fieldX set to Y

subIssueOrIssue in [resolution = unresolved and fieldX!=Y]

Regards,
Egor

Like Max likes this
Max May 11, 2020

Perfect! Thank you! 

Suggest an answer

Log in or Sign up to answer