It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Hi there,

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

thanks Fredy

3 answers

1 accepted

0 votes
Answer accepted

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

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

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

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

", "<br/>") )

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you