I used this in my velocity html mail template:
$wikiStyleRenderer.convertWikiToXHtml($renderContext, $issue.getDescription());
But the output is:
$wikiStyleRenderer.convertWikiToXHtml($renderContext, $issue.getDescription());
instead of my formatted description. What's wrong?
Thanks Fredy
That happens because $wikiStyleRenderer is not available in your context. You should take a look at rendererManager:
https://developer.atlassian.com/display/JIRADEV/Velocity+Context+for+Email+Templates
Great thanks!
It's absolutely right, I was on the confluence help instead of jira ;-o. And in the confluence context it is ;-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.