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

key

This should be unique within the plugin.

class

This must implement the com.atlassian.jira.issue.customfields.CustomFieldType interface.

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

Get JIRA Development Cookbook - Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.