Forums

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

Automation- startOfDay() not working correctly?

Ben Poulson
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.
October 24, 2018

I have set up an automation rule that is supposed to close a certain type of issue if it is created out of our business hours (6AM-7PM M-F). The checks for after 7PM, on Sunday, and on Saturday all work fine, but for some reason the check for before 6 AM does not work. It is catching tickets that are created after 6AM for some reason. The ticket in the attached screenshot was created at 7:14 AM. I am using "createdDate<startOfDay(6h)" to determine whether it was created before this time. I have also seen it happen with a ticket created at 7:45 AM. Does anyone know why this is happening/ how to get around it?

 

Thanks!Automation Incorrect.PNG

2 answers

1 accepted

0 votes
Answer accepted
Ben Poulson
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.
November 9, 2018

Figured it out. For people who find this in the future: The user that the automation rule was running as was set to a different time zone.

1 vote
Raynard Rhodes
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.
November 5, 2018

You may want to use "Less than or equal to" 

<=

 

I realized a lot in my JQL searching it would give me the results I wanted. It may or may not work for you.

Suggest an answer

Log in or Sign up to answer