Please JQL query to find out what issues within our instance have seen since the last 12 months

Bernardo San Juan April 28, 2016

In our instance we have more than 60.000 issues. I want to archive some of these issues based on the criteria of issues that no body has looked at in the last 12 months, that are just laying there and nobody is reading the content. Is there a way to know if an issue has been seen in the last 12months?

 

Would someone be so kind to suggest q JQL query formula.

 

Cheers

2 answers

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 28, 2016

There isn't one.  JIRA doesn't record "last viewed"

You could think about "last updated" - if an issue hasn't had a comment, edit or transition in X months, you can consider it "old" and think about archiving it.  JQL is just "updated < -365d "

Bernardo San Juan April 28, 2016

Many thks

Chris Dunne
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 28, 2016

I'm using JIRA 7 and I just tried a simple JQL test 

lastViewed <= now()

It worked, so there seems to be a lastViewed field / function in my instance.

I've no plugins installed other than the Automation and Portfolio plugin from Atlassian.

0 votes
Chris Dunne
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 28, 2016

Try lastViewed >= startOfYear()

Suggest an answer

Log in or Sign up to answer