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

1 vote
Answer accepted
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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!

Like Tuncay Senturk likes this
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 15, 2023

I'm glad it's useful.

Suggest an answer

Log in or Sign up to answer