Hi All,
I'm trying to set up an automation rule that sends email notifications to myself and others outside regular business hours (Mon–Fri 08:00–16:00, and 24/7 on weekends) for certain customers.
However, I'm currently stuck on how to configure the time-based trigger to only activate during those specific hours. I haven’t found a clear way to define this time window in the automation settings.
Has anyone dealt with a similar setup or have any tips on how to approach this?
Thanks in advance!
Hi @Weronika Akonom
Welcome to the Community !
You may perform something as below:
1. Automation based on schedule, you can state the timeline
2. If cron expression is complex, do a duplicate automation as weekdays and weekends.
3. automation condition as when the customer is the initiator or other condition based on customer.
4. Send the mail.
ELSE (AS WITH COMPLEXITY OF REQUIREMENT)
1. Run you rule for the action (create, update,etc)
2. Check for the custom in talk here
3. Check for the now() time for offline hours (if condition)
4. Send the notification.
Hi,
thanks for the suggestions! I'm having trouble with: 3. Check for the now() time for offline hours (if condition). I'm unsure how to correctly set up the condition to check if the curent time is outside working hours. Could you clarify how to implement this check with now()?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in that case, get the now() part based on https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/ and do a if condition.
ex. trigger time (shortTime()) 9.30 PM, then do a if as trigger > now() and trigger less than next day 8 AM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is {{now.shortTime}} greater than 9:30 PM supposed to work?
It doesn"t seem to give the right result for me - maybe beacause it compares strings?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You may use {{now.format("HH")}} to extract time.
Similar example is at https://community.atlassian.com/forums/Jira-questions/Re-Check-is-time-is-between-range-of-time-Jira-autoamtion/qaq-p/2378591/comment-id/707663#M707663
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to the community.
Whenever you ask for help with an Automation Rule it will help us to help you if you provide:
1. what type of project is this (e.g., company-managed, team-managed, etc.),
2. images that show your complete rule.
3. images showing the details of any relevant actions/conditions/branches.
4. images showing the Audit Log details for the rule execution.
5. Explain where the issue is.
These questions are not for not willing to help, but to have community members understand on how your automation works.
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.