Forums

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

Labels Filter "NOT IN" is not working.

Yasin Arafat July 24, 2023

I have a filter that working fine:

assignee in (currentUser()) AND status in ("In Code Review", "In Development", "In Progress", "In progress", Open) ORDER BY priority DESC, created DESC

But when I add: AND labels not in (qa_effort_only). It return nothing (no ticket found).

 

2 answers

1 accepted

1 vote
Answer accepted
Yasin Arafat July 24, 2023

We should always add labels is empty. Like:

AND (labels not in (qa_effort_only) or labels is empty)

2 votes
Frederik Vantroys
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 24, 2023

Hi @Yasin Arafat ,

Since you have only one condition you could try with

and labels != "qa_effort_only"

 

Also ... important to think what you want to do with items that have no labels. Maybe you have to add :

AND (labels not in (qa_effort_only) or labels is empty)

Yasin Arafat July 24, 2023

and labels != "qa_effort_only"     not working

but adding labels is empty works.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events