In this recipe, we will see how to write a new custom field type. Once created, we can create a number of custom fields of this type on our JIRA instance that can then be used to capture information on the issues.
New custom field types are created with the help of the customfield-type
module. The following are the key attributes and elements supported:
Attributes:
Name |
Description |
key |
This should be unique within the plugin. |
class |
This must implement the |
i18n-name-key |
The localization key for the human-readable name of the plugin module. |
name |
Human-readable name of the web resource. |
Elements:
Name |
Description |
description |
Description of the custom field type. |
resource type="velocity" |
Velocity templates for the custom field views. |
Valid-searcher |
From JIRA 5.2, you can define searcher in the custom-field definition itself. Most useful when we have a new custom field type that wants... |