Is it possible to add a hyperlink to the issue within a custom post function email template?
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>
<a href = "${baseurl}/browse/${issue.getKey()}">${issue.getKey()}</a>.</td></tr>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.