I am trying to set up a rule that will create an issue every weekday at noon UTC. The below CRON expression is what I am trying to use:
0 0 12 ? * 2-6 *
However, when I try to publish the rule I get the below error:
Value -1 for dayOfMonth must be in the range [1,31]
The value I have set for dayOfMonth is '?' so that I can set the dayOfWeek to include only weekdays. How do I get my desired result?
Hi Jamie,
Sorry about this, but seems like you've run into a bug with the validation our cron library performs: https://codebarrel.atlassian.net/browse/AUT-130
For now can you try changing your CRON expression to:
0 0 12 ? * 2,3,4,5,6 *
Hope that helps!
Cheers,
Andreas
Hi Andreas,
The CRON expression you provided was accepted - thank you!
Regards,
Jamie
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.