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);
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot