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

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.



2 answers

1 accepted

0 vote

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 "

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.

Try lastViewed >= startOfYear()

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

164 views 1 17
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