Hi atlassian community,
we would like to send a custom notification to a customer when a specific transition was triggered. We have now several postfunctions working, the first one is a script runner post function cloning the contents of the issue to a new issuetype and linking it to the issue.
The second function should send a notificiation mail, that the issue is being moved to the issue XX-XXX. The template is working fine, but I have no idea on how to mention the newly created linked issue within the customer notification.
Has somebody solved a related issue?
Edit:
I found a function that maybe helps, but still not idea how to put that correct within the email template:
issueFunction in linkedIssuesOf("status = Open", "blocks") and resolution is empty