Query subtasks which parent has label

We are using JQL Tricks Plugin which provides some excellent enhances to advanced query's.

However, if are unable to find a plugin/solution to solve this problem. We have parent/subtask issues where our parents are labeled with a particular label. We want to search for all subtasks where the parent has label x.

Something like:

project = "Test" parent('labels in ("mylabel")')

Anyone know how to perform this query?



1 answer

1 accepted

1 vote

Can you try the following?

issue in parent("labels = \"mylabel\"")

You can also do the following if you want to search on multiple labels

issue in parent("labels in (\"mylabel\",\"some other label\")")

Thank you! Exactly what we needed.

Three years later, and this code doesn't work. I guess JQL's changed a lot since then. How would this be done now?

Has anyone found a solution for this yet?

I would also need this but am not able to find a working query so far =/

Michael Diaz I'm New Here Monday

I am looking for solution as well, thanks.   

Suggest an answer

Log in or Join to answer
Community showcase
Emilee Spencer
Published Feb 23, 2018 in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

338 views 2 5
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
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