Is there a way within automations that I can have an email sent to the assignee of an issue when a new issues is created/linked to it? Suppose I have Issue A created and Dev in progress and a user links a Issue C to it, I want to send an email to the Assignee on Issue A so they are aware of the new linkage. I have it partially working but it is sending an email to the Assignee on Issue C and I need the email to go to the Assignee on Issue A.
We also have scriptrunner if that is an option.
It seems like this should be possible in Automation.
There is a condition for Issue Linked and it says:
"Rule executes when an issue is linked to another issue. {{issue}} will always refer to the source issue, so if ISSUE-A is blocked by ISSUE-B, this rule will execute on ISSUE-B. To access ISSUE-A, use {{destinationIssue}}, and to access the link type, use {{linkType}} (e.g. {{linkType}}='Duplicate')"
And there is an Action to send email and it says that smart values can be used in the To field.
So I would hypothesize that you should be able use that to send an email to the assignee on either issue. The {issue} and {destinationissue} values seem dependent on the "direction" of the link created, so you might have to send to assignees on both issues to ensure it gets to the Assignee on the right issue.
Thanks Trudy! I appreciate you brainstorming with me on this. I would have also thought the same, but I missing how to configure. Have you been successful at configuring?
The "To" line you cannot(not that I see) indicate of which issue for. You can pick a value of "Assignee" but I don't find where/how to pick for Issue A. In my example, the email continues to go to the assignee on Issue C. Typically upon create we don't set the assignee, therefore the automation is basically failing as assignee value is blank. Nonetheless, I want the email to go to the assignee on Issue A.
Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Odd - but it seems to be working now, with out any changes. :-) I'll keep monitoring and see if we continue to face any errors.
And we did get more "errors". So it seems the email will send, depending on which issue the linking is initiated on.
I still don't think this will work for us as we ALWAYS want the email sent to assignee on Issue A, regardless which order of steps were taken or link was initiated on.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.