Forums

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

How to set up a scheduled task for every three months

marc.van.der.peet
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 15, 2019

Dear all,

 

I installed the Jira scheduler: https://marketplace.atlassian.com/apps/37456/the-scheduler

 

This works fine. However, I want to do the following, I would like to set up a cron job so a ticket is created every three months (01/01, 01/04, 01/07, 01/10). Could somebody help me with the syntax for the advanced cron I need for this?

 

 

2 answers

0 votes
fran garcia gomera
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.
October 15, 2019

I think it would be something like

0 0 0 1 1/3 *

to be launched on 0:00:00 every 01/01, 01/04, 01/07 and 01/10

to change the starting month change the 1 in 1/3 to fit your first mont desired

to change the day of month change the 1 in the 4th position 

0 votes
Mohamed Benziane
Community Champion
October 15, 2019

Hello Marc,

 

You can use "interval" in the "trigger type" field.

the scheduler.png

 

If you need a cron instead of interval you can take a look at this page 

http://www.quartz-scheduler.org/documentation/2.3.1-SNAPSHOT/tutorials/tutorial-lesson-06.html

Suggest an answer

Log in or Sign up to answer