Hello everyone!
My name is Sebastian and I am from Buenos Aires, Argentina.
I created an automation rule that:
But this rule should only run every day from 09:00-18:00. Outside of these hours, you should not run.
How can I do this last condition?
Thanks in advance!
Hi @Sebastián Buzzurro For this you can apply if condition >> "Advanced Compare Condition", similar to below screenshot.
Similar Post :- https://community.atlassian.com/t5/Jira-Service-Management/Automation-for-Out-of-Hours/qaq-p/2333663
Hi @Vikrant Yadav ! Thank you for your response!
I tried to do this, but when I test it, the automation says "No Actions Performed" and the if block did not match the condition.
Now in Buenos Aires, Argentina it is 3:45pm. Maybe the Time Zone is incorrect? Do you know how can I set my Time Zone? (Buenos Aires, Argentina)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Instead of using the shortTime format I recommend the format that gives you the hour as 0-23.
{{issue.created.convertToTimeZone("America/Argentina/Buenos_Aires").format("H")}}
Then in your If block compare that value as
greater than or equal to 9
less than or equal to 18.
You might also want to use a Log action before your IF block, just to print that smart value into the Audit Log so you can confirm that it is getting the number you expect.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sebastián Buzzurro As said by @Trudy Claspill Use 24hr format and add Audit Log action to print time, which will helps you in debugging the automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Vikrant Yadav @Trudy Claspill Thank you so much! It works with this format:
{{issue.created.convertToTimeZone("America/Argentina/Buenos_Aires").format("H")}}
Then in the If block compare that value as
greater than or equal to 9
less than or equal to 18.
:)
Have a good day!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sebastián Buzzurro We are pleased to hear that we were able to assist you. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To supplement what @Vikrant Yadav suggested, I am sure that you need to change your rule triggering event to "Scheduled", then establish needed conditions.
This is only way where an automation rule can be invoked at a specific time/days in Jira/JSM projects.
Hope this also helps.
Best, Joseph Chung Yin
Jira/JSM Functional Lead, Global Technology Applications Team
Viasat Inc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Joseph Chung Yin ! Thank you for your response!
I understand you, but I need it to run when a ticket is created during a specific time only :( So the trigger must be Issue Created and then the condition of specific time to run.
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.