Forums

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

Open Parents with ALL Sub-tasks Closed JQL?

ian.johnsen
Contributor
March 18, 2021

How do I JQL Parent tickets that have ALL Sub-tasks that are closed?

Can't figure this one out!

 

1) Parents with resolution = Unresolved

and

2) ALL of their Sub-tasks with resolution != Unresolved

 

Probably requires an addon.

We have both ScriptRunner Enhanced Search and JQL Search Extensions addons.

 

Thanks

2 answers

0 votes
Tamás Fésüs
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!
August 13, 2024

In Scriprunner Enchanced Search this works for me:

issuetype not in (subtaskIssueTypes(), Epic) and status not in ('Done', 'Closed') and numberOfSubtasks >= 1 and NOT issuefunction in parentsOf("status not in (Done, Closed)")

0 votes
ian.johnsen
Contributor
March 19, 2021

So for more context. We have a ton of Parent tickets that are open and all ALL of the subtasks are Done. We need to find all of these so we can close them.

The filter needs to show:

  1. Only Parent tickets

  2. Only Open Parents (StatusCategory != Done works, but would prefer using Resolution = Unresolved)

  3. ALL subtasks are Done (StatusCategory = Done works, but would prefer using Resolution != Unresolved)

What we don’t want the filter to show:

  1. Parents with any Open subtasks.

  2. Sub-Tasks

  3. Closed Parents

I have been messing around with this for hours and cant figure it out!

Thanks!

Nick Pead
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!
January 17, 2022

@ian.johnsen Did you find a solution?  I'm looking for the same filter.

Thanks

Like David Ahern likes this

Suggest an answer

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

Atlassian Community Events