Forums

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

Incorrect results to similar query

Meni Hillel
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!
September 29, 2021

Consider the following query:

assignee = currentUser() AND resolution = unresolved

And the following :

assignee = currentUser() AND resolution = unresolved AND Triage in (Untriaged, Triaged, EMPTY)

Where "Tirage" is a user defined field with three possible values (Untriaged, Triaged, EMPTY)

 

The two queries yields two different number of records !

2 answers

1 vote
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 Leaders.
September 30, 2021

Welcome to the community!

Is your "empty" value here an option name (like untriaged and triaged) or do you mean the search command of empty?

If you are genuinely looking for an empty field (as opposoed to one containing a value called empty), then try

assignee = currentUser() AND resolution = unresolved AND (Triage in (Untriaged, Triaged) or Triage is empty)

1 vote
Leo
Community Champion
September 29, 2021

Hi @Meni Hillel,

Welcome to Community!

Is "EMPTY" value for the field? or you are referring NULL value here?

if that is also an value, there might be issues with NULL values on this field. and the query can as follows

 >>assignee = currentUser() AND resolution = unresolved AND (Triage in (Untriaged, Triaged, EMPTY) OR Triage is EMPTY)


Or even if you are referring NULL value, the above query will help you out

 

Hope this helps

 

BR,

Leo

Suggest an answer

Log in or Sign up to answer