[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