How to send Email after a deadline

ahmed itman October 14, 2019

Our team want after going to for example ( in progress status) and after 1 hour, if their is no change ( going to Done Status ), JIRA will send an email to Assignee.

So, How to configure each Issue to send an email after 1 hour after going to " in progress status " ?

thanks a million

2 answers

1 accepted

1 vote
Answer accepted
Andrew Laden
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 15, 2019

You may also be able to do this with a filter and subscription.

If you specifically want 1 hour after the transition change, then you would need a date/time field to hold the time of the transition. In a post function of the transition that sets to in progress you would set that time.

If you you are willing to use "updated time" then you could write a filter

assignee = currentuser() and status = "In Progress" and updatedDate <= -1h

And then have your agents subscribe to that filter on a periodic basis. 

Not exactly what you want, but can be done without any addons.

0 votes
jira guy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 14, 2019

You need some kind of plugin to do this. You can use automation for jira(paid version) or scriptrunner to achieve this. 

You would use a JQL status changed to filter these out and send emails.

ahmed itman October 14, 2019

@jira guy 
I am using ScriptRunner plugin, 
But i could not find a way to implement for example a timer to be trigger after a deadline, 
Have you implemented it before ?

jira guy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 14, 2019

on top of my mind, I can think of the following to achieve this. 

1.Capture the status changed time to a custom scripted field. 

2.Compare the dates using Issue function as shown below

https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_dates

3.Create an escalation service using the above jql.

 

There might be better ways to to this. 

Suggest an answer

Log in or Sign up to answer