I want to trigger an email to a specified distro list when an epic is moved to "closed" status. Ideally I would like that email to include specific fields from the JIRA ticket such as the "Description" field. It may be excessive to do this with all epics so it would be best if there was a choice to send and email or not when you close the ticket.
Hello,
You would need an add-on for it. You could use the Power Scripts add-on:
You could create a new custom field of the check box type, called "Send email". Then add a screen for the transition, which leads to the Closed status, with the Send email field included. Then you add a post function to this transition, which would check if the Send email field is on or off. If it is on, this post function would send a email.
The code for the post function would look like this:
if (#{Send mail} == "Yes") {
string [] to = {"testJiraUser1", "testEmail@kepler.ro", "testJiraUser2"};
string [] cc = {"testEmail2@kepler.ro"};
sendEmail("testFrom@kepler.ro", to, cc, "testSubject.tpl", "testBody.tpl");
}You can find more info on sendEmail function here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.