Rendering custom fields

If you’re developing a custom field, see which interfaces and methods we rely on to make sure the custom field will be rendered correctly on a Refined portal.

RestAwareField

If your custom field implements the RestAwareField and ensures a FieldJsonRepresentation is returned, we'll utilise the supplied rendered value when displaying the field value. This would also add support for your field in the regular Jira Rest API.

OrderableField

Another option is if you’re implementing the OrderableField and the getViewHtml method. If you’re implementing both of these the RestAwareField method takes precedence.

Frontend/Javascript

If you’re building your rendered value in the frontend, ensure your resources are loaded in the refined customer portal context by adding the context to the web-resource xml:

<web-resource key="resource-key" name="Resource Name"> ... <context>refinedcustomerportal</context> </web-resource>