Cron Expression in reocurring tasks

Hi

I am setting up a re-occurig task in JIRA, which I'd like to run at 12:01 AM Monday to Friday. 

So I have the following Cron expression in place

0 01 0 * MON-FRI

And the task is set to start from 2017-08-02 00:01 but when this is saved it says the next run date is 2017-09-01 01:00

Images of the screens are included 

JIRA 1.JPGJIRA 2.JPG

Any ideas on where I might be going wrong?


Thanks

Susan

 

2 answers

1 accepted

Hi Susan,

First of all, if you want to run at 12:01 AM, I believe your cron expression should look like:

1 0 * * MON-FRI"

(minutes come before hours).

That being said, the add-on you're using would not do that for you. The reason is highlighted on your screenshot, as they are creating issues every 30 minutes. This means that even though you'll set a desired cron expression, your actual running time will get "rounded up" to next half an hour.

If you'd like to have a precise control over when the tasks are created (without the 30 minutes rounding), I'd suggest you give The Scheduler a try.

All the best,

Maciej

Thanks very much Maciej - i thought it would be quiet a silly mistake! I'll have a look at Scheduler too.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

182 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you