Forums

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

Filtering for recently updated issues not working

Gusztáv Jánvári April 9, 2018

Guys, I have this search query (to list all undone issues, plus those entered specific other states in the last 2 weeks):

project = QA 
AND
(
statusCategory != Done
OR
(
status in (Cancelled, Closed, Done)
AND
updated > "-2w"
)
)
ORDER BY updated ASC, Rank ASC

 

Why do I get issues last updated 6 months ago? Very interestingly, if I change the > operator to <, I get old issues as well. I can't find what I do wrong. Could you help?

 

Gusztáv

1 answer

0 votes
Alexey Matveev
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.
April 9, 2018

You will get issues, which are update 6 months ago for the "statusCategory != Done" condition. If you want to limit such issue you should write:

project = QA 
AND
(
(
statusCategory != Done
AND
updated > "-2w"

)
OR
(
status in (Cancelled, Closed, Done)
AND
updated > "-2w"
)
)
ORDER BY updated ASC, Rank ASC
Gusztáv Jánvári April 9, 2018

Thanks for the response, Alexey! Actually I want to list all undone issues, so I don't need the limit for when statusCategory is not Done, only for the specified states.

I think my expression says this: list things from the QA project, which:

  • are either not done
  • are either in one of the 3 specified states and were updated in the past two weeks

Yet the results show cancelled and done issues updated months ago.

Alexey Matveev
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.
April 9, 2018

Your query looks correct. Try to reindex your project.

Gusztáv Jánvári April 16, 2018

Reindexing is not possible in the cloud, and the query is still returning issues last updated in last August. :(

Suggest an answer

Log in or Sign up to answer