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,555,439
Community Members
 
Community Events
184
Community Groups

Filter using Labels

How do I write a filter so it returns only items that contain two specific Labels? 

Right now, I have my filter written and selected my two labels.  The results show me all Epics with either label on it.  I only want to see Epics that have both labels.  Seems simple, but I can't figure it out.

 

Thanks,

Tracy

3 answers

3 accepted

6 votes
Answer accepted

I figured it out!  project = EXBA AND issuetype = Epic AND labels in (ccc_health_assessment) AND labels in (2021_h1_planned) ORDER BY cf[10009] DESC, cf[20963] DESC, created DESC

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jun 07, 2021

That looks strangely familiar!

2 votes
Answer accepted
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jun 07, 2021

try this….


Project = abc and labels = string1 and labels = string2

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jun 07, 2021

project = EXBA AND issuetype = Epic AND labels = ccc_health_assessment and labels = 2021_h1_planned ORDER BY cf[10009] DESC, cf[20963] DESC, created DESC

Jean Evelette
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Mar 29, 2023

OK and how to "exclude" Epics / Stories having a dedicated label?  This doesn't work -> labels != toto or labels not in ("toto")

0 votes
Answer accepted
Dave Mathijs
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jun 07, 2021

Hi Tracy,

Can you share the JQL of the filter you've written?

Thanks,

Dave

Hi Dave,

project = EXBA AND issuetype = Epic AND labels in (ccc_health_assessment, 2021_h1_planned) ORDER BY cf[10009] DESC, cf[20963] DESC, created DESC

Dave Mathijs
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jun 07, 2021 • edited

Jack has given you the correct answer below.

Suggest an answer

Log in or Sign up to answer