Forums

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

Cron job for every 2 weeks from a certain date

Laura Christie March 19, 2024

I want my automation to start at 5pm on 26 March, then run every 2 2 weeks following that on a Tuesday.  I have this:

0 0 17 26 3 2/2

But get this error:

You must use '?' for either the day-of-month or day-of-week.

Capture.JPG

1 answer

1 accepted

0 votes
Answer accepted
Kseniia Trushnikova
Community Champion
March 22, 2024

Hi @Laura Christie,

There's no cron for every 2 weeks. You can try this:

0 0 17 11,26 * ?

This cron will run the rule at 05:00 PM, on day 11 and 26 of the month. It's not every two weeks, but it's the closest cron expression I can find.

But I think the easiest way to set the rule is to use the Basic tab of the Scheduled action...

Screenshot 2024-03-22 at 12.54.27.png

Suggest an answer

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

Atlassian Community Events