Time source for cron automation execution

Hubert Bedyk August 4, 2023

Hello,

i can't find information what is the time source for cron execution in automatation in Jira Cloud.

I have automation with cron expression 0 * 1-12 ? * 2-6 and it started at: 

04/08/23 02:18:53 pm
04/08/23 02:19:03 pm
04/08/23 02:19:51 pm

but should start at every minut between 1am and 12am hour from Monday to Friday. Why it started at 2pm?

When I've changed cron expression to 0 * 14 ? * 2-6 it didn't start at 02pm at all.

So now i'm super confused what is time source for cron automation. Hour format should be 24H according to Atlassian's documentation.

3 answers

2 accepted

2 votes
Answer accepted
Sayed Bares [ServiceRocket]
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 4, 2023

@Hubert Bedyk Cron expressions are scheduled based on UTC, My guess is your timezone is (UTC+14/UTC-10) so if you want to run it based on your own timezone then you will need to take that into account

Hubert Bedyk August 4, 2023

"Cron expressions are scheduled based on UTC" That I missed.

Thanks

Like Rilwan Ahmed likes this
1 vote
Answer accepted
Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 4, 2023

Hi @Hubert Bedyk 

Check your timezone - cron in Automation runs in UTC.

don't believe you can set a timezone in cron via Automation at this point - see this feature request: AUTO-101 - but you could set your timing based on UTC time, for when 1am-12am is in your timezone.

Ste

Hubert Bedyk August 4, 2023

I've missed the information that "cron in Automation runs in UTC."

Thank you

Like Ste Wright likes this
0 votes
Hubert Bedyk August 4, 2023

I've looked again at https://support.atlassian.com/jira-software-cloud/docs/manage-filters/ and there is no information about that. The same here: https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/ but it's clearly noticed in the box below cron expression setting in the system. 

My mistake.

Suggest an answer

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

Atlassian Community Events