Scheduling Automation for 2 days after 2nd Tuesday

Tyler Elliott
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 10, 2024

Hello there,

I am trying to schedule an automation that happens 2 days after the 2nd tuesday of each month.

First I looked at Cron and found several threads that seem to imply it cannot do that sort of logic check and you'd need to have some sort of additional logic layer in your script/automation to facilitate it.

Next I looked at simple triggering it on the 2nd tuesday and then just hacing it wait for 48 hours but it seems that the Delay action in Automation can only delay for 15 minutes so I'd need almost 200 consequtive delay actions.

Anyone have some caveat/tweak that could make one of the above options work or some other options? I feel like this must be a pretty common need with how microsoft and other companies schedule updates.

Cheers!

1 answer

0 votes
Dan Breyen
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 10, 2024

Hi @Tyler Elliott welcome to the Community! I think I can get you to 23:59 on that 2nd Tuesday by using 

0 0,59 0,23 ? * 3#2 *

I keep this Cron helper bookmarked: https://freeformatter.com/cron-expression-generator-quartz.html 

If you can delay it once, that would get you to the day after the 2nd Tuesday of the month.  Not sure how you could delay it further.

Hope that helps.

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