Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Maintaining line breaks in issue fields displays in emails using velocity templates

Jake Jollimore July 27, 2018

The question pretty much says it all. 

Here's the line of code I'm using to output the issue's description in an email: 

#rowWrapperNormal("<span style='color:#707070; font-family:arial;'>Description: </span><span style='font-family:arial;'>$!issue.description</span>")

However, this does not keep the line breaks that are present when viewing the issue's description in Jira. Instead, it just spits out a large, unformatted block of text. 

Is there a way I can keep the line breaks in the email?

1 answer

0 votes
Andy Heinzer
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.
August 3, 2018

Hi Jake,

It appears this same topic has come up before on our site.  Have you seen the thread on https://community.atlassian.com/t5/Questions/velocity-mail-template-missing-line-breaks-in-issue/qaq-p/227606

In it, Fred describes the syntax he used in order to be able to see such line break content in these email velocity templates.   I am curious if perhaps these same steps can still be followed for current Jira versions.

I hope this helps.

Andy

Suggest an answer

Log in or Sign up to answer