private void removeCustomFieldAssociations(String customFieldId) throws RemoveException { // Remove and field screen layout items of this custom field fieldScreenManager.removeFieldScreenItems(customFieldId); delegator.removeByAnd("ColumnLayoutItem", FieldMap.build("fieldidentifier", customFieldId)); // JRA-4423 Remove any references to the customfield in the field layouts. delegator.removeByAnd("FieldLayoutItem", FieldMap.build("fieldidentifier", customFieldId)); fieldConfigSchemeManager.removeInvalidFieldConfigSchemesForCustomField(customFieldId); // This should be triggered via an event system but until then is done explicitly notificationSchemeManager.removeSchemeEntitiesForField(customFieldId); }