Query subtasks which parent has label

Michael Goodnow August 13, 2012

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?

Thanks.

-Mike

2 answers

1 accepted

1 vote
Answer accepted
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 13, 2012

Can you try the following?

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

Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 13, 2012

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

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

Michael Goodnow August 15, 2012

Thank you! Exactly what we needed.

Mark McCarthy July 24, 2015

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

Like # people like this
Seb November 4, 2016

+1...

Michael Fahrun January 3, 2018

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 March 19, 2018

I am looking for solution as well, thanks.   

Hong Zhang July 19, 2018

+1, doesn't work now

4 votes
ridzeal April 16, 2018

Just have the same requirement and successfully make it happens

You can use something like

issueFunction in subtasksOf("labels = \"mylabel\"")
Carlos Gonzalez August 2, 2019

not for me

ETW March 27, 2020

That worked nicely for me, thank you for sharing.

Eliseo Martínez November 16, 2020

issueFunction seems to not exist anymore

Like jeff_kehler likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events