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 votes
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 Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

20,744 views 2 7
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