How do I set a select list field to 'None' for an issue programmatically? I know how to set a value of a select list custom field, but in this case I want to remove any selections so that it becomes the default value of 'None'.
Community moderators have prevented the ability to post new answers.
Just set null. None is basically setting empty value.
Its not working. My code is like this:
MutableIssue issue = _issueManager.getIssueObject(currentIssue.getId()); CustomField cf = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName(CUSTOM_FIELD_NAME); cf.updateValue(null, issue, null, new DefaultIssueChangeHolder());
An exception is thrown on the last line.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.