Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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?

Thanks.

-Mike

2 answers

1 accepted

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?

Like # people like this

Has anyone found a solution for this yet?

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

I am looking for solution as well, thanks.   

+1, doesn't work now

Just have the same requirement and successfully make it happens

You can use something like

issueFunction in subtasksOf("labels = \"mylabel\"")

That worked nicely for me, thank you for sharing.

issueFunction seems to not exist anymore

Like jeff_kehler likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Bitbucket Smart Commits vs. Genius Commits - What's the difference?

If you already heard about Smart Commits in Bitbucket, know that you just stumbled upon something even better (and smarter!): Genius Commits by Better DevOps Automation for Jira Data Center (+ Server...

114 views 0 2
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you