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

This widget could not be displayed.

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

This widget could not be displayed.

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

48 views 2 2
Join discussion

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