Hi
I am trying to add an automation rule for creating an issue monthly.
trigger : Scheduled, 31 Days, simply run the conditions and actions without providing issues
if : JQL condition, {{now.date.year}} = 2024
action : create issue
If I remove the JQL condition, it works. However I need the current year condition, because I will use branch component like as {{now.date.year}} = 2024, {{now.date.year}} = 2025, and so on.
Can you advice for me?
{{now().year}}
is giving me 2024 as a result
Having it scheduled every 31 days though will not trigger it on the 1. of every month. You can use cron expressions to achieve that. If I googled correctly (not an expert on that part) it should be
0 0 1 * *
to run it 12.00 AM on the first of every month
I don't think that CRON is right, according to https://confluence.atlassian.com/jirasoftwareserver/constructing-cron-expressions-for-a-filter-subscription-939938814.html
Assuming that `seconds, minutes, hours, day-of-month, ..` the fourth * would result in the rule running every day at 1 am.
So I think that
0 0 0 1 * ?
Should be correct as "Every 1st day of any month, at 00:00".
Agreed that the "If" cannot be a JQL condition since JQL is an issue filter, not a universal value comparison device.
I would also note that CRON does support an optional 7th param for the specific year, so technically that could also be used as a substitute to the if condition, though it might probably be harder to structure the rule with that.
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.