JQL to find parents where all subtasks are resolved

Hello,

Is there a JQL function (native or via Script Runner) that would allow to find all the issues that have all their SubTasks resolved?

Thanks in advance for your help.

Gianni

2 answers

1 accepted

Hi Gianni, 

Look at this asnwer JQL: Find all open issues of type "Issue Tracker" where all subtasks are closed or resolved

If you have script runner installed, a query like this will give you all the issues that have all their subtasks done.

issuefunction in parentsOf("type in subtaskIssueTypes()") and not issuefunction in parentsOf("resolution = Unresolved")

I tested it and it works for me.

Regards,

Konstantin

1 vote

Install scriptrunner and use the following query. 

 

issuefunction in parentsOf("issuefunction in subtasksOf(\"issuefunction not in parentsOf('type in subTaskIssueTypes() and status != closed')\") ")

Thanks, this works too but in my case the one by Konstanting is more readable. Working on resolution instead of status of subtasks was fine too.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,086 views 4 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you