You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hello Jira community!
I am looking for a way to filter by multiple labels at once. I've previously used a filter to filter by several labels, as so:
labels in (HUD, Design, UX) ORDER BY labels ASC
The problem with this is that the search displays issues matching ANY of the labels in question, as opposed to what I want, which is ONLY issues matching ALL the labels.
I hope I'm making sense! It doesn't seem like this use case is what the AND operator is used for, so I wonder if there is a way to create an exclusion within the parentheses perhaps?
Thanks for your help,
Faraaz
Hi @Mykenna Cepek and @Bharathi
These solutions are technically correct for if I was intending to show issues that match all three labels at the same time, which is a valid and helpful suggestion, so thank you.
However, my intended usage is to show issues that match two labels at a time. Essentially, as an example, I want it to show:
1. Issues that have the labels HUD and Design,
2. Issues that have the labels UX and Design,
3. Issues that have the labels Map and Design,
And so on.
I do not want the filter incorporating this search to show all Design issues (since not all of them are relevant), nor do I want it to show all UX issues, for example, since those issues may be in another discipline (e.g. Engineering).
I hope my explanation makes sense. Thanks so much for your help!
So the question changes to:
labels in (HUD, UX, Map) and labels = Design
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This worked! Thanks so much. I think I need to learn to distinguish between the use case of "=" and "in" as well.
-Faraaz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried something like this?
labels in (HUD) and labels in (Design) and labels in (UX) ORDER BY labels ASC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As @Mykenna Cepek has rightly pointed out, you need to specify each label separately with an "AND" in between.
labels = HUD AND labels = Design AND labels = UX ORDER BY labels ASC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What @Bharathi suggested is a bit simpler than what I wrote. Either one will work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.