The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Create After Hours Ticket Creation Notification

Drew Nedderman
Contributor
July 11, 2024

I'm attempting to create an automation rule that notifies me when a new JSM ticket is created after our working hours.

Working hours are 8:00 AM - 5:00 PM Central time, Monday - Friday.

I have something partially working. Here are screenshots of the rule and the audit log:

2024-07-11 08_14_39-Audit log - Automation.png

2024-07-11 08_30_54-Audit log - Automation.png

It looks like the conditions for Saturday and Sunday are working. So far, the conditions for before 8:00 AM and after 5:00 PM are not working.

I need to understand what I'm doing incorrectly. As far as I can tell, the IF blocks are set up correctly. Thank you!

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Tessa Tuteleers
Community Champion
July 12, 2024

Hi @Drew Nedderman , 

is it possible to provide a bigger screenshot (for the first image), it is not readable at this point in time, and would be good to debug ;) 

Cheers, 

- Tessa

Drew Nedderman
Contributor
July 12, 2024

Hi @Tessa Tuteleers, yes, here is the rule broken into two screenshots:

2024-07-12 08_14_07-Rule builder - 1st and 2nd IF blocks.png

2024-07-12 08_14_49- 3rd and 4th IF blocks.png

Tessa Tuteleers
Community Champion
July 15, 2024

Hey @Drew Nedderman , 

I looked into your rule and this might still work, however, you might be comparing 2 different types of data here (a time object, and normal text). This is never a good idea as comparing text with a "lesser than" can give very odd results. 

I would advice comparing apples to apples, and reform your text input (5PM) to a time input as well. 

I quickly tested the following and it seems to hold up: 

Screenshot 2024-07-15 103304.png

{{created.convertToTimeZone("America/Chicago")}} 

{{created.convertToTimeZone("America/Chicago").withHour(17).withMinute(0)}}

 

Let me know if that works for you! 

- Tessa

 

Drew Nedderman
Contributor
July 15, 2024

Hi, @Tessa Tuteleers

 

This is working great! Thank you for the help.

Like • Tessa Tuteleers likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events