Forums

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

Check if within business hours

Esteban Borja Lopez
Contributor
May 25, 2022

Hello community, 

does anyone know how to can I set an expression on an automation rule to trigger an action or another based on the event execution timestamp is within business hour or on non-business hour?

This is applicable to an SLA for which times differ depending on the moment an incident is raised. The logic is basically as follow:

  1. Ticket is created at e.g. 10am local time
    1. SLA time to set: 15 mins response time and 2 hours resolution time
  2. Ticket is created at e.g. 4am local time (as it is raised by a team in a different timezone)
    1. SLA time to set: 1 hour response time and 8 hours resolution time

Been unsuccessful at finding a solution for this by reading the documentation and the forum threads... any help out there?

If you reached this far on this post, I want to thank you in advance for the time you dedicated! :)

Regards,

Esteban

1 answer

0 votes
Trudy Claspill
Community Champion
May 25, 2022

How are you defining "local time"? Is that a specific timezone always?

Esteban Borja Lopez
Contributor
May 26, 2022

it's defined per project (each one is on a different location). Every time I create a ticket im defining the corresponding timezone on a custom fields (which I use later on for different purposes), irrespective of the reporter account settings.

Im using e.g. {{issue.Created.SetTimeZone("Europe/Rome")}}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events