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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.