I need to be able to execute an automation "every two weeks on Wednesday". Since you can't specify this directly in the Cron expression I am approaching this with a Cron expression to run every Wednesday and have a conditional to check whether or not to skip or continue this week.
This is what I was hoping to be able to use based on determining if I am a multiple of 14 days out from an anchor date.
{{#=}}{{now.diff("2023-06-28").days}} % 14{{/}}
The above should be 0 every two weeks from 2023-06-28 so I would use the above in an advanced compare checking for equals 0.
Unfortunately it doesn't work to have a literal date in the diff function.
Does anyone has a suggestion for how to get that date accepted in the function or how you have implemented the every other week specification in a rule? Note this is data center so I don't have the ability to set a variable.
A colleague pointed me to https://community.atlassian.com/t5/Jira-Software-questions/Jira-automation-Cron-condition-every-2-weeks/qaq-p/1591412?anon_like=1591489 which resolved this for me.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.