The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

weekly cron job for automation for jira

Scott McDonald
Contributor
November 15, 2019

Hello -


Can someone help me with a cron job that I want to run once per week, every Sunday at Midnight?  0 0 1 * 0 doesn't appear to be working.  Automation for JIRA is asking for a 1-12 for the month.


Thanks,.

Scott

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Tuncay Senturk _Snapbytes_
Community Champion
November 15, 2019

Hello @Scott McDonald 

You can use below cron for every Sunday midnight

0 0 0 ? * SUN *

Next execution date/times will be as below (assuming today is Nov 16 Saturday)

  • Sun Nov 17 00:00:00 UTC 2019
  • Sun Nov 24 00:00:00 UTC 2019
  • Sun Dec 01 00:00:00 UTC 2019
  • Sun Dec 08 00:00:00 UTC 2019
  • Sun Dec 15 00:00:00 UTC 2019
  • Sun Dec 22 00:00:00 UTC 2019
  • Sun Dec 29 00:00:00 UTC 2019
  • Sun Jan 05 00:00:00 UTC 2020

You can use cron generator sites (e.g.: https://www.freeformatter.com/cron-expression-generator-quartz.html) to generate and test such cron expressions.

Best

Richard Imbrogno
November 15, 2023

Thanks for posting the request Scott and Thank You Tuncay for posting this cron expression generator. Awesome!

Tuncay Senturk _Snapbytes_
Community Champion
November 15, 2023

I'm glad it's useful.