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

This widget could not be displayed.
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.

This widget could not be displayed.

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

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

143 views 2 0
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