Configure Email alert 2 day's before "Due Date" Based on Jira Transtion

We have 3 workflow transtions in our Jira workflow. Following are the 3 transitions -

Production Incident Occurred

Initial Analysis Started

Initial Analysis Completed

Now we need to send email alert 2 day's before "Due Date" if anybody do not complete "Initial Analysis Completed" transtion.

We have configure "Escalation service" From Builtin Script Runner. In the Escalation Service we have put following line in "Additional Issue action" Section -

"issueInputParameters.setComment('The issue is not updated for last 7 days...Please take necessary action on it')"

and set JQL Query "status = Open and project = "Project Name" and updated < -7d"

So a comment has been generated 7 days prior automatically if the issue not updated.

Right now we need to send email regarding this instead of comment.

Can you please help us how can we configure this ?


2 answers

0 vote
Henning Tietgens Community Champion Feb 17, 2014

If you don't wan't to change something on the issue you could use the builtin subscriptions for filters. Create a filter which finds all issues for which you want to send an email (use reporter=currentUser() if you want to send the email to the reporter) and create a subscription for a user group which contains all relevant users (see https://confluence.atlassian.com/display/JIRA/Receiving+Search+Results+via+Email).

Hi Henning,

I do not want to configure subcription.

Actually We have configure "Escalation service" From Builtin Script Runner. In the Escalation Service we have put following line in "Additional Issue action" Section -

"issueInputParameters.setComment('The issue is not updated for last 7 days...Please take necessary action on it')"

and set JQL Query "status = Open and project = "Project Name" and updated < -7d"

So a comment has been generated 7 days prior automatically if the issue not updated.

Right now we need to send email instead of comment 7 day's prior of "due date" if any issue is not updated

We need to send the mail 7 day's prior of "Due Date" based on any workflow status. Could you please inform us how we can configure this ?

Regards

Sumit

Henning Tietgens Community Champion Feb 17, 2014

Could you tell me why you don't want to configure a subscription?

Hi Hennings,

I have not quite understand if we configure subcription how Jira send mail automatically if any issue staus not updated for 7 days based on only "Due date" or send mail 7 days prior to due date

Regards

Sumit

Henning Tietgens Community Champion Feb 18, 2014

Your search should be something like

status != "Initial Analysis Completed" and duedate < endOfDay(7)

You will get all issues which are not in status Initial Analysis Completed and where the due date is before end of today + 7 days. If you want the assignee to get the email you add

and assigne = currentUser()

If the reporter should get the email you add

and reporter = currentUser()

If you create a subscription for this filter (see link in my answer) for a group of all potential users (e.g. "jira-users", but a smaller group would be better) the system does this search for every user and if it finds matching issues the user will get an email with all matching issues.

We understand. Thank you. We will test and let you know

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,252 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot