Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to exclude certain label when refining the search?

Samir Koirala July 13, 2022

I am fairly new to the Atlassian Community. I want to view all the issues that don’t have Labels for eg: TST and PRD.

What I tried: project = DEVOPS AND labels != TST AND labels != PRD. 
Any help would be appreciated. Thanks

1 answer

1 accepted

1 vote
Answer accepted
Mikael Sandberg
Community Champion
July 13, 2022

Hi @Samir Koirala,

Welcome to Atlassian Community!

When you are searching for specific labels you also have to include when labels is empty for it to work. So in this case your query should look like this:

project = DEVOPS AND (labels not in (TST, PRD) OR labels is EMPTY)

Samir Koirala July 13, 2022

I only want the Stories NOT having those labels. So it would be:

project = DEVOPS AND (labels NOT in (TST, PRD) OR labels is EMPTY)

Like Mikael Sandberg likes this
Mikael Sandberg
Community Champion
July 14, 2022

You are absolutely correct.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events