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
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

25,567 views 2 7
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