Forums

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

How to create a dynamic filter between weeks and between a specific timeframe

Vlad Manolache December 4, 2023

Hello everyone,

I need help in order to create a filter that will start on Monday and reset on next Monday, for example:

created >= startOfWeek("+1d") AND created <= endOfWeek ("+1d")

but I need for the filter to show me results from a specific timeframe. For example, from Monday to Sunday to show results between 8 AM and 11 AM.

 

Thank you!

1 answer

1 accepted

1 vote
Answer accepted
BHUSHAN PATIL
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.
December 4, 2023

Hi @Vlad Manolache  ,

Jira's JQL doesn't have a direct function to specify time ranges within a day. try following JQL which approximates the time range within the day based on timestamps.

The startOfDay("+8h") and startOfDay("+11h") are indicative and might not precisely represent 8 AM and 11 AM in all scenarios due to timezone differences or issues created at the exact start of that hour.

(created >= startOfWeek("+1d") AND created <= endOfWeek("+1d"))
AND (created >= startOfDay("+8h") AND created <= startOfDay("+11h"))


Adjust the time range and constraints based on your specific requirements and timezone considerations.

Regards,
Bhushan

Vlad Manolache December 4, 2023

Hello Bhushan,

 

Thank you for your answer and instructions.

Best regards,

Vlad

Like BHUSHAN PATIL likes this

Suggest an answer

Log in or Sign up to answer