Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

I need to create a custom email with post-function that adds the link to that issue

Eimy Jimenez December 23, 2021

Hello.

 

I need to send a custom email to the Reviewer (custom field) when an issue transitions to an status. I am already creating the post-function tool. The thing is, I need the email to have the link to that issue, so the reviewer can easily read it and then click on it and open Jira immediately. I don't know how to code that. Can anybody help me?

1 answer

Suggest an answer

Log in or Sign up to answer
2 votes
Adrien Low _ServiceRocket_
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.
December 24, 2021

Hey @Eimy Jimenez ,

If you have the Send a custom email [ScriptRunner] post-function configured, below is a sample script that you can put into the Email template field:-

Dear ${issue.reporter?.displayName}, <br><br>

This issue has been transitioned to ${issue.status.name}.

View the issue <a href="http://localhost:8080/browse/${issue.key}">here</a>. <br><br>

Regards.

The output would be something like this:-

sampleOutput.png

Regards.

TAGS
AUG Leaders

Atlassian Community Events