JQL BEFORE predicate and relative formats

I'm trying to find issues in certain status for which the transition took place before X hours/minutes etc.

status = "STATUS ABC" and status changed to "STATUS ABC" BEFORE -2h

The syntax seems syntactically valid but I don't get the expected results. Any ideas?

1 answer

0 vote
Dates and times are numbers. So try greater and less than symbols < and >. I think your clause will be status changed to x > -2h ( that means "a time greater than two hours ago" or "in the last two hours"


the comparison operators "<" , " >", etc. are not valid for the "CHANGED" operator, only BEFORE or AFTER

Bother, sorry, I forgot that, I was looking just at the date/time element, it had just come up at the office.

Before and after only accept absolute date/time as far as I know.

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
Posted 9 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

33 views 0 5
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