Jira hosting: Cloud, Server, Data Center
As a creator of Schedule Issue, while creation, on the 3rd step, you can choose “Advanced” mode for setting cron expression of trigger type.
Cloud | Server |
---|---|
This option allows you to provide your own Quartz Cron Expression. It can be usefull useful when you need to set specific exceptions in your planning Schedule Issue, e.g weekends need to be off for regular created task.
...
Examples of using cron
...
expressions.
Info |
---|
All following examples are showed on Cloud version of Jira. |
Example 1 - an expression to create a trigger that simply fires every hour
...
Note |
---|
The Scheduler doesn’t support triggers executed more frequently then an hour. |
...
Examples from Atlassian Community
Problem | Cron Expression | Source if available |
---|---|---|
“every month on day 5th, 15th and 20th” | 0 0 0 5,15,20 * ? * | https://community.atlassian.com/t5/Jira-Software-questions/corn-expression/qaq-p/1490086#M99690 |
“starts every 3 month on the 15th of March, June, September and December” | 0 0 12 15 3/3 ? * | |
“How can ı schedule my yearly issue?” | 0 0 0 1 1 ? * | https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Jira-Workflow-Toolbox/qaq-p/1530118 |
“I want to run once per week, every Sunday at Midnight” | 0 0 0 ? * SUN * | |
“every three months on day 21st” | 0 0 8 21 3,6,9,12 ? | https://community.atlassian.com/t5/Jira-Core-questions/cron-expression/qaq-p/425524 |
“every first day of a quater (1 Jan, 1 Apr, 1 Jul, 1 Oct)” | 0 0 0 15 */3 ? | https://community.atlassian.com/t5/Jira-Software-questions/Cron-expression-for-quater/qaq-p/897223 |
“I would like to set certain specific deadlines for the same JIRA project as for example: 10/02 of every year 10/05 of every year 10/08 of every year 10/11 of every year” | 0 0 10 10 2,5,8,11 ? | https://community.atlassian.com/t5/Jira-Service-Management/Automation-project/qaq-p/1447661 |
“should have a reminder every first wednesday of every month” | 0 15 7 ? * 4#1 | |
“I have hit a wall trying to find a cron expression that will work to set up either a task that will run on:
| 0 0 12 ? 3/3 WED#1 * 0 0 1 1 */3 ? 0 0 12 1 2 ? * | |
“schedule a task for every year on April first” | 0 0 12 1 4 ? * | |
“I am trying to make a service run at 9am every day” | 0 0 9 1/1 * ? * | https://community.atlassian.com/t5/Jira-questions/Script-runner-escalation-service/qaq-p/190798 |
...
If you not sure that set cron expression is correct and supported, you can check which icon is appeared next to Cron Expression field:
...
https://www.freeformatter.com/cron-expression-generator-quartz.html
http://www.cronmaker.com/;jsessionid=node01kx02x3pnx9y8117ptnautx4zp376663.node0?0