Hi,
I'm a newbie in developing Jira plugins and I would like to implement a custom field which consists of a select list (combo) and a button. When pressing the button a dialog should be shown and allow to define a string which should be added to the options of the select list after pressing a button on the dialog.
I've defined the custom field with its new created class in the atlassian-plugin.xml file and added a velocity template which fills the select list and adds a button for showing the popup dialog.
What I would like to know if it's easily possible to add a new option entry directly to the OptionsManager and to the select list and selecting the new created entry.
Do you have any hints?
As a quick hack I did the following: I append the new option to the custom field in the button handler inside of the vm file. In the class of the custom field I've overwritten the method validateFromParams and add the new option to the OptionsManager if it's not already defined.