Velocity question

Rumceisz July 14, 2013

Hi All,

we currently changing our HTML velocity templates but we cannot change the URL of the Issue Summary. Do you know in which template is this reference stored?

See attached screen:

https://support.atlassian.com/secure/attachment/647929/Summary.jpg

Thanks in advance,

Rumi

2 answers

0 votes
Jobin Kuruvilla [Adaptavist]
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.
July 14, 2013

What is #emailbanner_LSY? Shouldn't you call emailbannerCustom?

0 votes
Rumceisz July 14, 2013

Hi guys,

I figured out that the mentioned field is stored in the 'macros.vm' here:

#macro (emailbanner $actionerUser $verbkey $verba1 $verba2 $verba3)
#set($issueTitleHtml = "<a style='color:${textLinkColour};text-decoration:none;' href='${baseurl}/browse/${issue.getKey()}'><strong>$textutils.htmlEncode($issue.getSummary())</strong></a>")
#commonEmailBanner($actionerUser $issueTitleHtml $verbkey $verba1 $verba2 $verba3)
#end

Therefore I put a new macro in the code:

#macro (emailbannerCustom $actionerUser $verbkey $verba1 $verba2 $verba3)
#set($issueTitleHtml = "<a style='color:${textLinkColour};text-decoration:none;' href='custom.url.com/browse/${issue.getKey()}'><strong>$textutils.htmlEncode($issue.getSummary())</strong></a>")
#commonEmailBanner($actionerUser $issueTitleHtml $verbkey $verba1 $verba2 $verba3)
#end

and when I tried out I get the following error in the email:

#emailbanner_LSY($issue.reporterUser "email.event.activity.created" $reporter $issueLink "")

Suggest an answer

Log in or Sign up to answer