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

Sys Admin February 17, 2014

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
Sys Admin February 18, 2014

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

0 votes
Henning Tietgens
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.
February 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).

Sys Admin February 17, 2014

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
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.
February 17, 2014

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

Sys Admin February 17, 2014

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
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.
February 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.

Suggest an answer

Log in or Sign up to answer