I am creating a JIRA issue programmatically with a listener plugin, it gets its input values from a screen. I have a radio button field whose value I want to be set when the issue creation finishes. The radio button field is present on the given screen when you view/create/edit the issue but the value is not set.
Below is the code
CustomFieldManager custFieldMgr = ComponentAccessor.getCustomFieldManager();
Option optionValue = (Option)issue.getCustomFieldValue(custFieldMgr.getCustomFieldObject("customfield_" + customFieldId));
issue.setCustomFieldValue(customField, optionValue);