The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Have you seen this bug? --> labels = empty

Bruce Hartman
Contributor
March 1, 2022

I am doing this search:

assignee = currentUser() AND labels not in (XXX, YYY, ZZZ) ORDER BY priority DESC, updated DESC

and I get zero results....

yet if I do this..

assignee = currentUser() ORDER BY priority DESC, updated DESC

I get results, including tickets with Labels = None

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Nic Brough -Adaptavist-
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 Champions.
March 1, 2022

I can't see a "bug" there, just the (unintuitive for humans, but actually useful) quirk that if you want to see things that do not have a label set at all, you need to ask for it.

Try:

assignee = currentUser() AND (labels not in (XXX, YYY, ZZZ) or labels is empty) ORDER BY priority DESC, updated DESC

TAGS
AUG Leaders

Atlassian Community Events