Forums

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

Cron Expression Errors

Jordan Trinklein
Contributor
July 21, 2023

Hello!

I have a filter subscription that I'm trying to wire up so it sends every other Friday at 9 AM, starting two Fridays from now. So I inputted the following Cron expression:

 

0 9 * * 5/2

Jira keeps telling me that I'm giving them an unexpected end of expression.

Any thoughts as to what I'm doing wrong with that Cron expression? 

Thanks!

2 answers

1 accepted

0 votes
Answer accepted
Tim Perrault
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.
July 21, 2023

Hi @Jordan Trinklein 

 

Cron can’t schedule jobs in intervals determined by weeks, meaning every other Friday won't work.

 

With that said, you could just run it every Friday without a headache.

 

0 0 9 ? * FRI *
Jordan Trinklein
Contributor
July 21, 2023

Totally agree @Tim Perrault 

I would love to do it every Friday 😄 but I'm currently trying to satisfy a requirement from executive level leadership. 

Like # people like this
Tim Perrault
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.
July 21, 2023

They will probably need to spend some money on one of the apps in the marketplace then. You can get close to what you need with cron, but you will never be able to have an expression that is every other Friday.

Like # people like this
0 votes
Hyrum Steffensen _Appfire_
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.
July 21, 2023

Hello Jordan,

I tried out your CRON expression using cronmaker.com and it returns an error. I had better luck with the following:

0 0 9 ? * 6 /2

0 0 9 ? * FRI /2

Hope that helps!

Hyrum

Jordan Trinklein
Contributor
July 21, 2023

Appreciate the response @Hyrum Steffensen _Appfire_ Hyrum. I inputted both suggestions you gave me and Jira accepted it.

However, I'm not sure it interpreted it correctly. According to this, it is showing the next send as 1/5/2024Screenshot 2023-07-21 at 2.55.55 PM.png

Hyrum Steffensen _Appfire_
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.
July 21, 2023

Hello Jordan,

I saw that when I used cronmaker, but did not trust the results. Well, as a workaround, perhaps you could ask the executive level leadership to wait until next year! 😃

I agree with Tim. An automation app could perform the same function. I know Power Scripts can run scripts in an interval of two weeks. You could also create two CRON jobs to run once a month on the first and third Fridays.

BTW, happy Friday!

Hyrum

Note: I work for Appfire and support Power Scripts.

Like # people like this

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