It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Add issue hyperlink into custom email

matt Dec 18, 2012

Is it possible to add a hyperlink to the issue within a custom post function email template?

4 answers

1 accepted

2 votes
Answer accepted
Bastien Dec 18, 2012

Hi Matthew,

Did you write you own email template ? In this case, the template get some Jira variables from the event that calls this template, and you can build the link into your mail template with the Jira url (and issue key) :

#set($baseUrl = $params.get("baseurl"))

<a href="$baseUrl/browse/$issue.key">Link text</a>

2 votes
sreenivasaraju P Dec 18, 2012

<a href = "${baseurl}/browse/${issue.getKey()}">${issue.getKey()}</a>.</td></tr>

2 votes
JamieA Dec 18, 2012

The base url is in the binding as baseUrl, so you would use ${baseUrl}, not baseurl as in the other answers.

My answer is specific to the script runner plugin, I think the other answers are applicable to velocity templates in jira.

0 votes
Belinda Tinsley Jul 20, 2017 • edited

We are struggling to get the post function to send en email containing the hyperlink for the issue. We have the syntax as follows:

 <a href = "https://alsacjira.alsac.local:8443/browse/${issue.getKey()}">${issue.getKey()}</a>

We are getting the email with some text we sent, but no hyperlink as expected.....

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

scaling agile at the enterprise level with Valiantys

Hey there Community! My name is Vannya Vallejo, the Channel Communication Specialist at Atlassian and I want to help Atlassian users like you learn about our Solution Partners and how they can help ...

432 views 1 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you