Hi,
I try to strip unwanted wiki markup from my description field to use the raw text content in a scripted field.
This is the function:
public String renderToPlainText(Issue issue, Logger log = null) {
JiraRendererPlugin renderer = ComponentAccessor.getRendererManager().getRendererForType("atlassian-wiki-renderer")
return renderer.render(issue.getDescription(), issue.getIssueRenderContext())
}
I found only a way to show the wiki markup as text in the scripted field but not to strip it totally:
public String renderAsText(String s,
IssueRenderContext issuerendercontext) {
return s;
}
Does anyone know a solution for this problem?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.