JQL CHANGED Operator Returns First Occurance, Not Latest Occurance

I'm trying to write a JQL that checks for any issues that moved to a particular status prior to 90 days ago. In other words, issues that have been sitting in this particular status for more than 90 days. I found the CHANGED operator to work great except for when an issue moved to that status more than once. It appears that the CHANGED gets the first time, not that last time. I was wondering if there was any way to query to get the last time it moved to a status.


changed to planned before -90d  #right now it compares to the first time an issue went to planned, not the last time.

2 answers

Hey Michael, 

If I understand correctly, you care about an issue that is in status = x and hasn't been updated in 90 days. Is that correct? If yes, try this: status = <status you want> AND updated > -90d

This would give you all the issues that are in the status you are looking for and not updated in the past 90 days. 

It will get all changed event (not only the first). You need

status changed to planned before -90d and not status changed after -90d

 that will give you issue which went to planned before 90 days and didn't changed the status since then.

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...

246 views 1 18
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