boolean
|
areConfigSchemesEqual(List<FieldConfigScheme> schemes, List<FieldConfigScheme> otherSchemes)
|
void
|
clear()
clear the cache
|
CustomField
|
createCustomField(String fieldName, String description, CustomFieldType fieldType, CustomFieldSearcher customFieldSearcher, List<JiraContextNode> contexts, List<IssueType> issueTypes)
Creates a custom field with the given name and description of the given CustomFieldType
using the given CustomFieldSearcher that is displayed in the given list of contexts available to the given list of issueTypes.
|
boolean
|
exists(String key)
Returns true if this customfield actually exists.
|
CustomField
|
getCustomFieldInstance(GenericValue customFieldGv)
Converts a customfield GenericValue to a CustomField instance.
|
@Nullable
CustomField
|
getCustomFieldObject(String key)
Get a CustomField by its text key (eg 'customfield_10000').
|
@Nullable
CustomField
|
getCustomFieldObject(Long id)
Get a CustomField by ID.
|
@Nullable
CustomField
|
getCustomFieldObjectByName(String customFieldName)
Retrieve the first custom field object with the specified name.
|
List<CustomField>
|
getCustomFieldObjects(Issue issue)
Get all CustomField s in scope for this issue's project/type.
|
List<CustomField>
|
getCustomFieldObjects(Long projectId, List<String> issueTypeIds)
|
List<CustomField>
|
getCustomFieldObjects(GenericValue issue)
|
List<CustomField>
|
getCustomFieldObjects(Long projectId, String issueTypeId)
Gets a list of custom fields for a particular project and issue type.
|
List<CustomField>
|
getCustomFieldObjects(SearchContext searchContext)
|
List<CustomField>
|
getCustomFieldObjects()
Returns all custom fields.
|
Collection<CustomField>
|
getCustomFieldObjectsByName(String customFieldName)
Retrieve custom field(s) of a certain name.
|
CustomFieldSearcher
|
getCustomFieldSearcher(String key)
Retrieve a custom field searcher by its type key.
|
Class<? extends CustomFieldSearcher>
|
getCustomFieldSearcherClass(String key)
Retrieve a custom field searcher by its type key.
|
@Nonnull
List<CustomFieldSearcher>
|
getCustomFieldSearchers(CustomFieldType customFieldType)
Retrieves all the searchers registered for a particular custom Field.
|
CustomFieldType
|
getCustomFieldType(String key)
Retrieve a custom field type by its type key.
|
@Nonnull
List<CustomFieldType<?, ?>>
|
getCustomFieldTypes()
Retrieve all customfieldtypes registered in the system.
|
List<CustomField>
|
getCustomFieldsFromIds(List<Long> ids)
|
@Nullable
CustomFieldSearcher
|
getDefaultSearcher(CustomFieldType<?, ?> type)
|
List<CustomField>
|
getGlobalCustomFieldObjects()
Returns a list of custom fields where the isGlobal()
is true.
|
boolean
|
isCustomField(String id)
Returns true if this ID is in the Custom Field format.
|
@EventListener
void
|
onClearCache(ClearCacheEvent event)
|
void
|
refresh()
reloads all customfields into the cache from the DB, this is an expensive operation, so avoid it if you can.
|
void
|
refreshConfigurationSchemes(Long customFieldId)
Causes a reload of the field configuration scheme for a specified custom field id
Call when the configuration scheme changes
|
void
|
removeCustomField(CustomField customField)
Removes the customfield supplied including all associations and values.
|
void
|
removeCustomFieldPossiblyLeavingOrphanedData(Long customFieldId)
Removes the customfield supplied.
|
void
|
removeCustomFieldValues(GenericValue issue)
Removes the values stored by customfields for a particular Issue.
|
void
|
removeProjectAssociations(Project project)
Used if a project is deleted to remove the project field associations.
|
void
|
resetAllCustomFieldIds()
|
void
|
updateCustomField(Long id, String name, String description, CustomFieldSearcher searcher)
Updates the given custom field.
|