Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,295,587
Community Members
 
Community Events
165
Community Groups

JQL based on time field

Hi

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

 

Thanks

 

2 answers

0 votes
Tessa Tuteleers Community Leader May 11, 2022

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, 

Tessa

0 votes

Hi Nadeem!

Can you try this:

project = "Project1" and "Start Date" > 9m and "Start Date" < 11m

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.20.8
TAGS

Community Events

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

Events near you