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 votes

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

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,963 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot