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
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

23,440 views 2 7
Join discussion

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