I'm working on a JIRA custom field type plugin that I want to display in wikimarkup. Right now, I don't even have the 'Renderer' option for the field type. I'm guessing that if possible, I have to edit the pom.xml, the atlassian-plugin.xml or the view.vm velocity template. I'm just not finding any clear answers out there. Does anyone have an idea?
In the comments below, you can see I tried to force some wikimarkup through the velocity view template with no luck. So what enables the 'Renderers' option for a field type? Is it hardcoded to certain field types (multi-line, single line, system description)?
Community moderators have prevented the ability to post new answers.
To get the "Renderers" option to appear for a CF on the Field Configurations page, it appears to be sufficient to have your CustomFieldType class implement the com.atlassian.jira.issue.fields.renderer.RenderableField interface, and then implement getValueFromIssue().
Have you found an answers to this? I have the same problem right now!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tagging some helpful experts in hopes of getting some guidance. @Henning Tietgens @Jamie Echlin [Adaptavist] @Jobin Kuruvilla [Go2Group] @Nic Brough [Adaptavist]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
#set ($componentManagerClass = $constantsManager.getClass().getClassLoader().findClass('com.atlassian.jira.ComponentManager')) #set ($method = $componentManagerClass.getDeclaredMethod('getInstance', null)) #set ($componentManager = $method.invoke(null, null)) #set ($rendererManager = $componentManager.getRendererManager() ) #set ($renderer = $rendererManager.getRendererForType("atlassian-wiki-render")) #set ($ircontext = $issue.getIssueRenderContext() ) #set ($renderedText = $renderer.render($value, $ircontext) ) I've got this far but it's still not displaying the wikimarkup. It's trying to set it to the default text. Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.