Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

CRON to run every 30 minutes during business hours

I want to check a filter and send an alert every 30 minutes but only during business hours. The issue is we are running on Pacific Time so my CRON expression looks like this:

0 0/30 0-1,14-23 ? * MON-FRI

This works well Tuesday to Thursday, but it also send alerts on Sunday afternoon and stops alerts 2 hours early on Friday.

I really don't want to create 2 automations just to get 2 CRON statements.

1 answer

1 accepted

1 vote
Answer accepted
Darryl Lee Community Leader Dec 05, 2022

Unfortunately, I think the situation is still as @Jack Brickey wrote in Nov 2020:

Automation runs at UTC. I wish you could choose your Zone but not there today. 

I wonder if maybe you could use the {{now}} Smart Value and combine it with the convertToTimeZone function to write your own Advanced compare condition. I'll think on this a bit.

Darryl Lee Community Leader Dec 05, 2022

Or maybe something with the toBusinessDaytoBusinessDayBackwards, or plus or diff using BusinessDays (business days are considered to be Monday to Friday, 9am to 6pm)

Sorry, date calculations usually make my head hurt. But maybe you or others could figure out something clever with those?

After considering what it would take to implement those smart values, I just went with creating 2 automations. :(

Darryl Lee Community Leader Dec 07, 2022

LOL. Yeah, sometimes the less elegant way is probably simpler. :-}

Like Melissa Kibrick likes this

Suggest an answer

Log in or Sign up to answer
Site Admin

Atlassian Community Events