Community moderators have prevented the ability to post new answers.
Scheduler doesn't allows you to put a straight forward cron expression for bi weekly issues
However there is a weird solution for this, which I use for my projects in JIRA.
Create one cron for every week (week 1 to 5), identify the weeks for every month when the issues needs to be created and then match your cron to respective month.
For example if the task falls on first week of January, March, August, December; use these months in your first CRON expression.
Below is an example, where the trigger falls every Wednesday starting first week of January.
0 30 12 ? 1,2,3,6,7,8,12 4#1 2017
0 30 12 ? 1,2,3,6,7,8,12 4#3 2017
0 30 12 ? 3,8 4#5 2017
0 30 12 ? 4,5,9,10,11 4#2 2017
0 30 12 ? 4,5,9,10,11 4#4 2017
Hello! I have a similar question.
I'd like a notification 2 weeks before the month, every 3 months.
Example:
reminder alert on December 16th or 2 weeks before January, 8:30a
reminder alert on March 16th or 2 weeks before April, 8:30a
and so on..
Thank you for your help in advance!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From memory, "The Scheduler" uses a variation (quartz) on the pretty-much standard everywhere "cron" format, which does minute/hour/day of month/month/day of week.
Quartz adds seconds and year to those, but doesn't change the basic principles.
Sadly, cron does not support "bi weekly", but you can get very close, if you are happy with something like "first and third Monday of every month", as you can say "0 7 1-7,15-21 * 1" (For quartz, I think you need to add a 0 to the front of that to cover the "seconds")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Nic Brough [Adaptavist] ,
Thank you for your answer. I tried with and without the 0 at the beginning of the expression and I am getting the error message of " Incorrect Cron Expression!!". Am I doing it wrong?
Thank you,
Elif
image2017-3-10 7:7:49.png
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm, could you try it without the first leading zero, and then if that does not work, drop the second 0?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Nic Brough [Adaptavist] ,
It seems like it does not work with or without any zeros. Please see the screen captures below.
Thank you.
Elif
Here is the one with one " 0 ".
image2017-3-13 7:1:7.png
Here is without any " 0 " s.
image2017-3-13 7:4:34.png
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
They should work, according to the docs. I think you'll need to raise this with the authors.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not exactly what you are looking for. But depending on your use case, you can send reminder for the same issue periodically instead of creating a new one may work for you. You can do this using issue reminder add-on. It supports cron expressions and periodic reminders.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I already have the "TheScheduler" add-on and all I need is to figure out the cron expression to have an issue to be created every two weeks on Mondays. Any idea?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.