Forums

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

JQL filter Issue for Change Start Date

Neeraj Sharma
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 10, 2022

Hi Team , 

 

I want to filter only data which is going to start in exact 48 hours from todays date. I am using two below query but its not working. 

"Change Start Date" = startOfDay(-2d)

 "Change Start Date" >= startOfDay(-2d) AND "Change Start Date" <= startOfDay()

how  can I filter data which is going to start in exact next 48 hours? like if I run query now(11/3), then it should filter the data of 13/3 only which is not happening. 

 

1 answer

1 accepted

1 vote
Answer accepted
Max Foerster - K15t
Community Champion
March 10, 2022

Hi @Neeraj Sharma ,

if you want to see a date in the future why do you subtract 2 days from it? Try this query for example

"Change Start Date" <= startOfDay("+2") AND "Change Start Date" > endOfDay("+1")

Best, Max 

Radek Dostál
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.
March 11, 2022

Also I'd add the ' don't use equals(=) with dates '. Imagine dates as timestamps or milliseconds, if a Date is stored as 22-March-2022 23:59, you probably don't want exactly 23:59. Always use > < or >= <= with dates.

 

As per https://support.atlassian.com/jira-software-cloud/docs/advanced-search-reference-jql-fields#Advancedsearchingfieldsreference-CreatedCreatedDatecreatedDateCreated about 'created' - and I think this applies to Date/Datetime picker custom fields as well:

Search for issues that were created on, before, or after a particular date (or date range). Note that if a time-component is not specified, midnight will be assumed.

Suggest an answer

Log in or Sign up to answer