Forums

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

Difficulty with Cron expression, getting multiple errors.

Colleen
Contributor
June 13, 2023

I am trying to create a cron expression that says, run the automation every weekday at 9:30am. I have tried the following based on examples I found on the web....

30 9 * * 1-5

And

30 9 ? * MON-FRI

I see "Unexpected end of expression" when I run the former and "Invalid month name: 'MON'" when I use the latter.  I was getting error "The rule has been configured with components that require issues to be provided by the trigger." but I stopped seeing this error when I specified the issues in a JQL filter. I verified the filter is acceptable so that's not the issue. Any advice on what's wrong here?

1 answer

1 accepted

2 votes
Answer accepted
Diogo Teles
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.
June 13, 2023

Hi,

 

I am using   0 0 4 ? * MON-FRI to successfully trigger a rule every weekday at 4 am.

 

Looking at your second option, I think you are missing the leading 0 for seconds:

0 30 9 ? * MON-FRI

Colleen
Contributor
June 13, 2023

Yes that worked, thanks!

Like Diogo Teles likes this

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