Hi,
I have Issue A with Links Issue B , Issue C and Issue D.
Issue B and Issue C are TASK
Issue D is Defect issue type.
Now I needs to send email to Issue D assignee when Issue A during transition. I am looking at script runner email notification but not finding the way to get Linked issue assignee in script runner email notification.
Looks to me I needs to have one scripted field that should hold Issue D assignee and then write the custom email notification during issue A transition.
Any advise.
Hi,
You need to use Send a custom email which is a Script Post-Function.
There is a similar example here. In the example instead of watchers just fetch the linked issue assignee.
Ravi
I used below piece of code
def destinationIssue = it.destinationObject
if(destinationIssue.getIssueType().getName() == "Work Request"){
emailAddressTo = destinationIssue.assignee.emailAddress
if(emailAddressTo){
def strSubject = "APRA Story ${issue.key} has been moved to ReWork"
def strBody = """${issue.key} has been moved to Rework. Needs to work on WorkRequest ${destinationIssue.getKey()}"""
sendEmail(emailAddressTo, emailAddressesCC, strSubject, strBody)
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.