Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add options manager for custom field plugin

Kirill Nazarov June 3, 2023

Hi, 

 

At the moment I'm implementing custom plugin for my org. 

 

I'm trying to extend AbstractCustomFieldType class and implement MultipleSettableCustomFieldType interface. 

 

When I run JIRA dev instance locally, I add new custom field, then go to Configuration for that field and there is no Options available. I expect that there will be Options similar to Cascading Select custom field. How to achieve this? 

1 answer

1 accepted

1 vote
Answer accepted
Tuncay Senturk _Snapbytes_
Community Champion
June 3, 2023

Hi @Kirill Nazarov 

It's really hard to guess from the input you provided. I assume that you already followed these steps:

  • Your custom field type extends the AbstractCustomFieldType class. 
  • Your custom field implements the MultipleSettableCustomFieldType interface which provides the methods to handle options in the configuration of your custom field. 
  • You override the getConfigurationItemTypes method and return a list of FieldConfigItemType objects that represent the types of configuration items you want to provide. In your case, you would need to return an item type for the options.
  • You defined this custom field type to your atlassian-plugin.xml file
Kirill Nazarov June 3, 2023

Hi @Tuncay Senturk _Snapbytes_ !

 

I missed overriding of getConfigurationItemTypes method. Now Options are available. 

 

Thank you! 

Tuncay Senturk _Snapbytes_
Community Champion
June 3, 2023

Perfect! I'm glad it helped.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events