Advanced Search on Subtasks

Hello !

I've got the script runner plugin on JIRA 5.1.

I'd like to find the right query to find all issues that have ALL their subtasks resolved.

Any idea with just the JQL and/or this plugin ?

Many thanks in advance.


3 answers


I am using the latest version of Script Runner (3.0.5), I do not know if the function I am using is available in your version. In any case, this seems to do the trick:


I updated the JQL to simply return all issues that have subtasks and are not in the set of issues that have a subtask that is not resolved.

issueFunction in hasSubtasks() AND NOT issueFunction in parentsOf("resolution is empty")




Hi Geert,

I have the 2.1.15 version of the script runner. The function do exists, but this query gets all issues that have at least one resolved task.

Thank you in anyway,

Met vriendelijke groeten.

For the record, Geert's answer helped me in finding a solution :

project = XXX and (issueFunction in hasSubtasks() and issueFunction not in parentsOf("resolution is empty"))

Thank you.

Kind Regards,


Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted Thursday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

173 views 12 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot