I have custom field, type - SelectCFType. How can I get the selected option value?
CustomField customField = customFieldManager.getCustomFieldObject("customfield_10000");
Object customFieldValue = issue.getCustomFieldValue(customField);
I think this code will help you to get customfield.
Regards
Onkar Ahire
Where are you trying to "get" it?
REST, plugin, javascript, something else?
Sorry, in my plugin.
CustomField customField = CustomFieldManager.getCustomFieldObject(urlfield);
This field have type SelectCFType. I want get selected option value.
Onkar has just updated the answer with what I was about to say!
Hi Ekateryna,
Click configure >> Edit Option for custom field>> add new custom field
Ok,
Try
issue.getCustomFieldValue(customfield);
Thank you, it works!
It looks like you're new here. Sign in or register to get started.