Forums

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

What is the JQL for status in Open for more than 2 days?

Harry Bob
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.
May 27, 2020

Hey guys,

 

What is JQL for a status that has been in 'Open' status for more than 2 days?

 

I tried

Status in (Open) AND >= 2d

but that doesnt work

 

Please help if you can :)

1 answer

0 votes
PM May 27, 2020

Try this. 

status = Open AND created <= -2d

 

Created in this instance refer to the 'Create Date' field value

Harry Bob
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.
May 27, 2020

Hi @PM 

 

Thank for that. 

 

I'm wanting to search specifically for open status that has been in that state for more than 2 days. I don't want to use created as the status itself can change and could revert back to open.

Daniel Ebers
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.
July 3, 2020

Hi Harry,

there are several approaches with JQL out there but the following should work. Please double-check carefully for your usecase. I did some tests and it looked good.

status = Open and status changed to Open before -2d

Cheers,
Daniel

Suggest an answer

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

Atlassian Community Events