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
Community showcase
Posted in United States

Live! - Austin ACE -- Summer BASH 2019

Hey Austin! Come join us for our 2019 Atlassian Community Summer BASH as we transition ourselves into party status! Bring an attachment, log a great time, and collaborate with new friends as we celeb...

38 views 0 0
View post

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