Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JQL query for a status change within the last hour

Callum Carlile _Automation Consultants_
Community Champion
August 19, 2020

I'm looking to find a JQL search for the following condition:

All issues transitioned from In Progress --> Query Raised within the last 24 hours

I've tried many different variations of this, using Atlassian documentation and other answers from the community but have had no such luck. Any help would be greatly appreciated!

1 answer

1 accepted

1 vote
Answer accepted
John Funk
Community Champion
August 19, 2020

Hey Callum,

Try this:

project = ABC and status changed from "In Progress" AFTER startOfDay(-1)

Callum Carlile _Automation Consultants_
Community Champion
August 19, 2020

Thanks for your speedy reply John! Unfortunately this didn't work for me, and it is returning zero results. There are also other statuses which In Progress can transition to which I want to be ignored from the JQL - it is only one particular transition I am wanting to query

John Funk
Community Champion
August 19, 2020

Can you share some details about a card that it should have worked for but didn’t? It works fine when I run it. 
Also, you can add changed from to for the status.

Callum Carlile _Automation Consultants_
Community Champion
August 19, 2020

I've just amended the query slightly, from
status changed from "In Progress" to "query raised" AFTER startOfDay(-1) to
status changed to "query raised" AFTER startOfDay(-1).

This is now returning some results, which is great. However it's also returning some results which were last updated yesterday - how can I edit the AFTER startOfDay(-1) part to only return issues within the last hour?

jql search.png

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 19, 2020

Hi @Callum Carlile _Automation Consultants_ 

Please try:  status changed to "query raised" AFTER -1h

Best regards,

Bill

Like # people like this
Callum Carlile _Automation Consultants_
Community Champion
August 20, 2020

Worked like a charm, thanks both!

Like # people like this
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 20, 2020

I am glad that worked for you, @Callum Carlile _Automation Consultants_ 

__Bill

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events