Hello. I created automation rule with scheduled trigger that should send out email with table of issues being pulled from jql filter every Monday afternoon at 2:00 PM using CRON expression
0 00 14 ? * 1
When I run rule manually it works as intended but the automation rule wont trigger at desired time using CRON expression. Would someone be able to help with this? This is Datacenter version of jira
Your Cron expression is wrong:
0 00 14 ? * 1
is what you have listed which reads
0 (at the top of every minute) 00 (doesn't exist - minutes are 0-59) 14 (on the 14th day of the month) ? (for any month) * (on every day of the week) 1 (not right here, this would only apply to year 1)
What you want is:
0 0 14 ? * MON
0 (at the top of every minute) 0 (on the top of the hour) 14 (on the 14th hour) ? (any day of the month ) *(of every month) MON (that is a Monday)
That should work. Year is optional, which would be a * at the end after the MON.
The cron format that Atlassian is using is covered under the "Construct a cron expression for a filter subscription":
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @J_ Caldwell I tried your recommendation and modified to a different time just for testing purposes and to not have to wait until Monday, but unfortunately still did not work and looking in the audit log displays nothing after my config change. Rule is not triggering still. This is what I used
0 18 11 ? * WED
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I noticed your "scheduled" trigger doesn't look the same as the cloud one -> It references server time: Cloud doesn't run off a server time like that, but one based off UTC. All your tagging of the problem indicates cloud.
Are you using Cloud or DC or Server? Because it looks like you are using DC/Server which has some different things that are different than in Cloud.
Any or all of those points could be why "it didn't run."
Recommend setting up a simple test automation to nail the timing and behavior first -> Set up an automation to send you an email, nothing else, just the email. Nail the timing simply and then expand. Get it to send you something every day at a particular time first, then adjust. Make sure to give it +10 minutes after it should have run to try again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @J_ Caldwell
The time zone was different like you suggested and as well switching the format from "0 0 14 ? * MON" to "0 00 15 ? * 2" . This is on Data Center
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is the CRON value correct?
0 14 * * MON -> this is the right one per https://crontab.guru/
Yours doesn't return anything.
Regards
Aaron
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian's cron expressions for rules and filter subscriptions include a position for seconds at the beginning of the expression.
crontab guru does not.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Adrian Avalos
When you review the Audit Log for the rule, at what time does it show the rule being triggered?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Trudy Claspill the audit log displays nothing after my config change. Rule is not even being triggered I believe
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.