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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

93 views 0 5
Read article

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