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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


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
Community Members
Community Events
Community Groups

JQL and multiple OR labels

I have a simple query that I want to use in a Kanban board sub-filter. I want to exclude any tickets that have either of these labels: Hold or Ongoing. Here's what I have so far, but it's not working (tickets with either label show up). 

(type = "My Department") AND (labels != hold OR labels != ongoing)

I've also unsuccessfully tried:

(type = "My Department") AND ((labels != hold) OR (labels != ongoing))


I should note that the first query with only (labels != hold OR labels is EMPTY) does work. I think I need to keep that EMPTY statement too. 


3 answers

1 accepted

2 votes
Answer accepted

If I'm understanding this then this should be it:

I would add that you may be misunderstanding what 'OR' does -- it's one or the other. So when you do labels != hold OR labels != ongoing, they both cancel each other out.


If I do 'not in()' below, then this is basically "does not contain any of these labels listed":

issuetype = "My Department" AND (labels IS EMPTY OR labels NOT IN (hold, ongoing))

You're a king! Do you have any idea how long I suffered with this? Thank you so much!!! (it worked!). Yes, I totally misunderstood the OR function. 


I am trying with multiple labels and it is not working. If I keep label=Feedback, it works but not with multiple labels. Pls help

project = ABC AND labels in (Feedback, Process Change, Engagement) AND status not in (Completed, Done, Cancelled) ORDER BY Summary ASC, updatedDate DESC

0 votes

Hi @Danny Brothers ,

Try this once

Type = my department and labels not in (Hold,Ongoing)

That almost got it but I needed the Is Empty in there as well. Thank you so much!

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events