Forums

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

[velocity mail template] missing line breaks in $issue.getDescription()

Fred Hauschel
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.
March 6, 2013

Hi there,

any idea of getting some information about the formatting or line breaks?

thanks Fredy

3 answers

1 accepted

0 votes
Answer accepted
Fred Hauschel
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.
March 12, 2013

My Solution is:

#if ( $rendererManager.getRenderedContent("atlassian-wiki-renderer", $issue.getDescription(), $issue.getIssueRenderContext()) )
$rendererManager.getRenderedContent("atlassian-wiki-renderer", $issue.getDescription(), $issue.getIssueRenderContext())
#else
description is missing...
#end

0 votes
proton November 6, 2014

You can do this .!
#set( $foo = $!issue.description )

#set ($desc = $foo.replace("

", "<br/>") )

0 votes
Fred Hauschel
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.
March 7, 2013

I think this should be possible with:

$wikiStyleRenderer.convertWikiToXHtml($renderContext, $issue.getDescription());

But it's not working yet! I will start a task "How does $wikiStyleRenderer.convertWikiToXHtml work?"

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events