Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do you enable render options for a JIRA custom field type plugin?

Kyle Moseley _blueridge_cx_ March 30, 2015

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)?

4 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Scott Dudley _Cenote_ February 9, 2019

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().

0 votes
Maxime Langevin July 26, 2018

Have you found an answers to this? I have the same problem right now!

0 votes
Kyle Moseley _blueridge_cx_ April 3, 2015

Tagging some helpful experts in hopes of getting some guidance. @Henning Tietgens @Jamie Echlin [Adaptavist] @Jobin Kuruvilla [Go2Group] @Nic Brough [Adaptavist]

0 votes
Kyle Moseley April 1, 2015

#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?

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events