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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,466,394
Community Members
 
Community Events
176
Community Groups

Filter issues by label and include their children regardless of their labels

Edited

Hi, I am looking for a method to filter by issues containing a certain label but also to include their child issues regardless of their labels.

I found a lot of articles that refer to multiple plugins but those are not available on Jira Cloud version.

Can someone tell me how to do this?

thanks

lucas

3 answers

1 accepted

0 votes
Answer accepted

@lucas , an amazing plugin JQL Search Extensions for Jira & reports is available on Cloud which can solve your issue.

 

I create your scenario and its successfully returning the results.

What you need to do is.

  • Create one sub query "labels=yourlable"
  • Then use this query to get your results.
subTaskOfQuery="parentissueswithlabel" or issuesInQuery="parentissueswithlabel"

Please note that "parentissueswithlabel" is the alias of the sub query. This query will return all issues with label=yourlabel and their child issues.

 

Here is the documentation , how to use it

https://jqlsearchextensions.atlassian.net/wiki/spaces/SEARCH/pages/173211649/Subqueries+-+Jira+Cloud

looks good to me, due to lack of rights I need to ask my administrator to install the plugin - as soon as I have more informations I'll come back to you,...

Anyway thank you in advance :-)

I can now confirm that using the JQL Search Extensions for Jira & reports plugin I can search for issues with a label and displaying those issues as well as their children.

Too bad this is only possible using a plugin,... I would expect to be able to do this with Jira out of the box :-(

Anyway thanks for pointing me to a workable method,... :-)

Like Hailey Fisher likes this

The best solution I found so far is filtering by parent epic.

parentEpic = epicName

I could see that working, but then you have to update the query when the EPIC closes, right?

Labels tend to be more permanent..

0 votes
Jack Brickey Community Leader Jan 13, 2020

you may be able to do this...

  1. create a filter say "parents_with_labels" that has a JQL - labels in (a,b,c)
  2. create another filter "parents&children" that has a JQL - issuetype = sub-task and parent in filter (parents_with_labels) OR labels in (a,b,c)

TBH, not sure this will work. just something to try. I don't use the "filter" function much.

LMK the results

Unfortunately a filter() function does not exist on Jira Cloud, do you use a Plugin for that?

Like Fernando Bordallo likes this
Jack Brickey Community Leader Jan 13, 2020

it may be part of the Jira toolkit plugin which I have installed but it is free. That is the only addon I have that might explain the difference you are seeing.

Like Fernando Bordallo likes this

I could not find any information about a filter() function using Toolkit Plugin for Jira. Either way it is not available for Jira Cloud, so it would not help :-(

Anyway, thanks for checking. Does anybody has any other idea?

Jack Brickey Community Leader Jan 14, 2020

it is available for Jira Cloud as that is where I see it. If you simply start typing "filter" in the JQL bar you do not see this option? If not, I will try to figure out why I might have it and you do not.

Sorry to bother but are you sure?

If I search for "toolkit" under Atlassian Marketplace > Find new apps from within my Jira Cloud Instance I can't find it.

If I search directly on https://marketplace.atlassian.com I can find one that has no Cloud Hosting Option: Toolkit Plugin for Jira

Can you point me to the plugin page?

Thanks

Jack Brickey Community Leader Jan 14, 2020

What I was saying is that the “filter” JQL function is available for cloud as I have it. I expect there is an optional system addon maybe that I have but unsure which one that might be at the moment. To be clear you do not see “filter” as an option in your instance?

I do have filter as argument to use like this in JQL:

issuetype = Bug AND filter = "My Own Filter Name"

 But I can't use it as function like you described earlier:

issuetype = sub-task and parent in filter ("My Own Filter Name")

I then get the error: JQL-Function 'filter(My Own Filter Name)' can not be found.

Suggest an answer

Log in or Sign up to answer