Am trying to schedule a task using Jira Automation to send an email when a certain time is about to be reached. For example, we have a start date field which when populated with the value 11/May/22 13:50, we would like an email to be sent to the assignee approximately 5/10 minutes before the start time, so in this case, email should be sent around 13:40.
I have this currently setup, project = "Project1" AND "Start Date" <10m
I think it works, but maybe my JQL is wrong as its picking up a lot of older issues issues.
Any help appreciated
Hi @Nadeem Zakir ,
the date field nearing current time is not a trigger, so if you want to do this, you should use a scheduled trigger, where the rule is scheduled to run every hour,.. (10 minutes might be a bit often).
Your JQL should narrow the issues that fall in that time window.
What you JQL says is: the Start date lies before 10 minutes in the future. So that is everything up til now and in the next 10 minutes.
So your JQL might be:
"Start date" >= now() AND "Start date" < 10m
this means the start date must be now, or between now and 10 minutes in the future.
If you "window" is 10 minutes, you need to run the rule every 10 minutes of course to not miss issues.
Make sure you don't overload the system and if possible, choose bigger windows or really limit the scope of the automation rule.
Hope this helps,
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events