// Update the custom field description.
customField.setDescription("New custom field description");
// Update the custom field on the server.
CustomField[] customFields =
customFieldService.updateCustomFields(new CustomField[] {customField});
for (CustomField updatedCustomField : customFields) {
System.out.printf(
"Custom field with ID \"%d\" and name \"%s\" was updated.\n",
updatedCustomField.getId(), updatedCustomField.getName());