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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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]
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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