Need help with specifying period of time on search filter

Ralph Licup July 24, 2023

Hi,

 

Can someone help me with my filter? basically, I need to create a filter for specific Project on a specific time of the day.

 

like for example, I need to create a filter where I can see tickets being create during 10PM to 6PM.

3 answers

1 accepted

3 votes
Answer accepted
Prerna Sony
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 24, 2023

Hello @Ralph Licup 

Welcome to Atlassian Community!

For dynamic dates and time, you can try something like 

project = SO and created > startOfDay("-2h") and createdDate <  startOfDay("-6h")

This will give you night tickets for every day. I.e. tickets created between 10 pm (last day) and 6 pm (of last day) 

Hope this helps !

Thanks,

Prerna 

Ralph Licup July 24, 2023

Awesome Thanks! let me try that now!

Like John Funk likes this
Ralph Licup July 24, 2023

This work great!, just needed to change the symbol after createdDate to greater than Sign. thanks again!

Like # people like this
0 votes
Dexter de Vera
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 24, 2023

Hi @Ralph Licup , you mean issue created today 10AM to 5PM? You can use this jql:

created >= startOfDay(10h) and created <= startOfDay(18h)

 

startOfDay start with 12AM plus the 10h (hours) equals 10AM and 18h (hours) equals 6PM

created >= startOfDay(10h) - check tickets is created after or equal 10AM

created >= startOfDay(18h) - check tickets is created before or equal 6PM

AND - a condition to check both JQL are met.

0 votes
Frederik Vantroys
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 24, 2023

hi @Ralph Licup ,

Something like this should work :

project = "XXX" AND created >= startOfDay("-1d") + "22:00" AND created <= startOfDay() + "06:00"

Ralph Licup July 24, 2023

Awesome Thanks as well! let me try that now!

Ralph Licup July 24, 2023

it keeps showing me errors with plus sign being a special symbol and needs to be enclose. sorry I'm new to to JIRA syntax.

Suggest an answer

Log in or Sign up to answer