Writing a simple custom field
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 |
---|---|
|
This should be unique within the plugin. |
|
Must implement the |
|
The localization key for the human-readable name of the plugin module. |
|
Human-readable name of the web resource. |
Elements:
Name |
Description |
---|---|
|
Description of the custom field type. |
|
Velocity templates for the custom field views. |
Getting ready
Before we start, create a skeleton plugin. Next, create an eclipse project using the skeleton plugin, and we are good to go!
How to do it...
In this...