Velocity question

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

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 "")

0 vote

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

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

273 views 3 11
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you