How to send an email to say assignee via automation every 4hrs until the issue is closed.
The scheduled option is based on a set schedule and cannot be used for individual issue's create date.
For eg - If I have scheduled an email for 2PM , 6PM , 10PM .. and an issue is created at 4PM .. in the 6PM batch it wont be picked as it has been only 2 hrs since issue is created . It will be picked in 10pm batch . however, it means that it would be 6hrs since the issue was created and that is not what I am looking for.
If anyone has a solution for this please help.
Hi @apai ,
Welcome to the Atlassian Community!
You can use the corn expression for the rule trigger every 2 hours. You can use the below website to create a corn expression.
https://www.freeformatter.com/cron-expression-generator-quartz.html
Example- for 2 hours every day
0 0 0/2 ? * * *
Hi @apai , and Welcome to the Community, glad you're here!
To follow on what @Manoj Gangwar suggested (with apologies if you're familiar with cron scheduling expressions), you might also look at the Community article Constructing cron expressions for a filter subscription. It provides a breakdown of how a cron expression is actually built and definitions of the common characters you can use to manipulate it (such as /, *, - and so on).
Using the chart above, you would use the cron expression
0 0 0/4 ? * MON-FRI *
to send the Assignee an email starting at 0 seconds of 0 minutes of hour 0 (midnight, or 12AM, the 0 of 0/4) every 4 hours (the 4 of 0/4) on any day of the month of every month on weekdays of every year. If you wanted to start sending emails at 6AM or 1PM, you'd just change it to
0 0 6/4 ? * MON-FRI * OR 0 0 13/4 ? * MON-FRI *
If you plug that expression into the utility that Manoj referenced, the text interpretation would be "At second :00, at minute :00, every 4 hours starting at 00am, every day between Monday and Friday, every month". Note that there's not a character for year because we've indicated that it's every month (with no end).
Hope this helps!
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.