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 Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,403 views 15 19
Read article

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