Hello,
we use Wiki Markup Renderer for the Issue Description Field.
In (HTML) Emails the Markup isn´t displayed correctly.
Example: In the Email it looks like this: {color:#ff0000}Test{color}
Is there a way that it would be rendered correctly? Maybe edit the binaries (does anybody knows wich file/jar contains the Email renderer?)?
Thanks!
I used the following to convert markdown to HTML to include in an email:
def description = issue.description ?: ""
//convert wiki markup to html in description field
def rendererManager = com.atlassian.jira.component.ComponentAccessor.getComponent( com.atlassian.jira.issue.RendererManager.class)
def fieldLayoutItem = com.atlassian.jira.component.ComponentAccessor.getFieldLayoutManager().getFieldLayout(issue).getFieldLayoutItem("description")
def renderer = rendererManager.getRendererForField(fieldLayoutItem)
description = renderer.render(description, null)
Thanks for the fast response!
Where I have to insert this Code? It Looks like Groovy. But could i use it also for Default Jira Mail Templates (Issue Updated, ...)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, it's Groovy; I used it in the ScriptRunner "Send a Custom Email" function. Sorry, not sure about doing something similar in the mail templates.
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.