How can i get a jql query for getting all the issues which are older than 2 years.
Depends on how you define "older", as you could mean any of created, updated, commented, transitioned etc.
But something like
updated < -730d
should do it.
do you have something like createdDate < -2y
To search for issues created over two years ago:
createdDate < -104w
To search for issues that were last updated over two years ago:
updatedDate < -104w
You would probably want to add "AND resolution = unresolved" to filter out the older resolved issues.
It looks like you're new here. Sign in or register to get started.