Seeing old resolved items but using (status != Done OR (status = Done AND resolutiondate >=-1w)) Edited

Having trouble trying to keep my kanban board clean by excluding items resolved past a defined window, such as last 5 days. The query is returning items closed back in January (5 months ago)

2 answers

0 votes

Do the issues with status done that are appearing actually have a resolution date set?  The status is not techinically anything to do with the resolution.

Ok, Another sanity check which I think you've probably already performed - they're definitely in the status "done"?

Would it be possible to re-index the issues and see if that fixes it ?  You can re-index the whole project they are in, or just update one of them with something minor, like adding a . to a text field.

Yes, it has a status of Done. Tried the edit to a text field, no change. Also the re-index didn't fix it. 

here is my full query

project = "XX" AND (status != Done OR (status = Done AND resolutiondate >=-1w)) AND ("Epic Link" is EMPTY OR "Epic Link" != XX-255 AND "Epic Link" != XX-575 AND "Epic Link" != XX-98 AND "Epic Link" != XX-744) and status != cancelled ORDER BY assignee ASC, Rank ASC

 

 

 

thank you for the help

 

You have a lot of AND and OR going on there. It might help if you got rid of all the 'Epic link' stuff first to get the status data right. Try to recreate your filter focusing on the statuses first and add the Epic link stuff afterwards. You might consider one of these options:

- group the statuses in your JQL: status NOT IN (Done, Cancelled) OR (status = Done and resolved >= -1w)

- Try using Resolution instead of status as Nic suggested. 

Thanks Walter and Nic, with your suggestions I've got it working now...

(status NOT IN (Done, Closed, "Bug Resolved") OR resolved >= -5d) AND status != Cancelled AND (fixversion not in releasedVersions() OR fixversion is EMPTY)

had to add all of the closed state status' to the query, not just "Done"

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,175 views 13 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot