Hello!
I have setup an automation to let customers know that because their ticket was submitted during off hours(weekends), they will have limited support.
The automation is only supposed to go off:
But for some reason, the automation is going being kicked off early morning on Fridays.
I think it may have to do with request type? or just an error in syntax?
I've attached a copy of my automation block for review:
Previously I used ".shortTime" to write out the condition. And now Im using the ".longTime"
Any feedback will be helpful !
Thanks in advance
Thank you Natalya!
Is there any way to do this for Every Friday?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Ken Obsequio , the condition that @Natalya Ozhigova shared would be in addition to the IF / ELSE block you are already using.
While the attached screenshot below is not properly filled out based on your specific needs, the structure of the blocks should be what you're looking for.
Essentially, you would need to replace your second "Smart Values" condition with the one @Natalya Ozhigova shared.
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.
I have a feeling the issue is related to how Jira is comparing the two values. If I were to guess, I can imagine the "Greater Than" condition might be expecting a plain number, and the PM PST component is throwing the comparison logic for a loop.
I would suggest using the .format feature of the time related Smart Values, as found here https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/#Date-format--- and formatting the time to be one long number.
This is the test I did:
{{created.convertToTimeZone("America/Los_Angeles").format("kkmmss")}}
This will result in the time being formatted as the hour between 01 and 24, the minutes from 00 to 59, and the seconds from 00 to 59. So, for 5:51 PM, this would return 175132. You can then use this as a plain number to compare to 6:00 pm, which would be 180000. If the number is larger, then you know it's past that time.
Let me know if this helps!
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.