Forums

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

Out of Hours automation trigger setup

Weronika Akonom May 12, 2025

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!

2 answers

1 vote
Piyush Annadate _ACE Pune_
Community Champion
May 12, 2025

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.

Weronika Akonom May 12, 2025

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()? 

Piyush Annadate _ACE Pune_
Community Champion
May 12, 2025

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.

Weronika Akonom May 13, 2025

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? 

1 vote
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2025

Hi @Weronika Akonom 

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events