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:
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!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
{{created.convertToTimeZone("America/Chicago")}}
{{created.convertToTimeZone("America/Chicago").withHour(17).withMinute(0)}}
Let me know if that works for you!
- Tessa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.