Forums

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

JIRA Automation | Cron syntax

Jim Kinter February 12, 2021

Really getting into the JIRA automation, and have a question regarding the cron syntax for scheduled tasks.

I know how to do 9am on 2nd tuesday of each month, with the 3#2, but was curious if there is a way to do  2nd tuesday + 3 days (3 days after the 2nd tuesday)?

Would 3#2+3 work? Havent tried it, guessing that syntax actually wouldnt, but wondering if there is some syntax that would/known? I know its a stretch...

Thanks

 

2 answers

1 vote
Paloma Fondon Araujo
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.
February 12, 2021

Hi @Jim Kinter 

You can try the cronmaker application to introduce the values and translate them into cron expression you are looking for

I hope it helps you
Greetings

Jim Kinter February 12, 2021

Yeah, I tried 0 0 9 ? 1/1 3#2+3 * and it blew an error (like I expected).
Ill see how I can get creative starting with 0 0 9 ? 1/1 3#2 * and then maybe set the due date +3 or something.

Thanks for trying (and showing me that link (I usually use crontab.guru)

Like Paloma Fondon Araujo likes this
0 votes
Darryl Lee
Community Champion
February 12, 2021

Wouldn't 3 days after the second Tuesday always be the second Friday?

0 0 9 ? * 5#2
Jim Kinter January 12, 2022

while 6#2 would be the 2nd friday, it would not be the friday after the 2nd tuesday (3#2+3) if the 1st of the month fell on Wed/Thu/Fri .

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events