Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

getCustomFieldType returns null

Bhushan Nagaraj
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 18, 2014

CustomFieldType selectType = customFieldManager.getCustomFieldType("com.atlassian.jira.plugin.system.customfieldtypes:select");

CustomFieldSearcher selectSearcher = customFieldManager.getCustomFieldSearcher("com.atlassian.jira.plugin.system.customfieldtypes:selectsearcher");

The above returns null. What am I missing? JIRA 6.0

Using it in a listener in the afterPropertiesSet() method

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Andreas Ebert
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 21, 2014

There is no CustomFieldSearcher with key "selectsearcher". You probably mean the Searcher with key "multiselectsearcher", which is valid for the CustomFieldTypes "multiselect", "select", "radiobuttons", and "multicheckboxes".

See the file system-customfieldtypes-plugin.xml as reference.

Bhushan Nagaraj
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2014

Hey Andreas,

What about custom field type itself?

CustomFieldType selectType = customFieldManager.getCustomFieldType("com.atlassian.jira.plugin.system.customfieldtypes:select");

Any idea why that is returning null?

TAGS
AUG Leaders

Atlassian Community Events