Interface FieldConfig
- All Known Implementing Classes:
FieldConfigImpl
@PublicApi
public interface FieldConfig
Represents a particular configuration of a
ConfigurableField
. A configuration can have many facets, such as default value
and options. These are customizable through registering FieldConfigItem
objects in the getConfigItems()
method.
This object is generally used in conjunction as part FieldConfigScheme
objects where a config can be attached
per IssueType
This is used in configuring custom fields..
Sample code
Retrieving a FieldConfig and using it to retrieve a set of custom field options:IssueContextImpl
issueContext = newIssueContextImpl(Long, String)
IssueContextImpl(projectId, issueTypeId)};FieldConfig
fieldConfig =cf.getRelevantConfig(issueContext)
;Options
options =optionsManager.getOptions(fieldConfig)
;
-
Method Summary
Modifier and TypeMethodDescriptionReturns a list of FieldConfigItems.<T> ConfigurableField<T>
Returns the related configurable field.Deprecated.getId()
getName()
-
Method Details
-
getId
Long getId() -
getName
String getName() -
getDescription
String getDescription() -
getConfigItems
List<FieldConfigItem> getConfigItems()Returns a list of FieldConfigItems.- Returns:
- A list of
FieldConfigItem
s.Collections.emptyList()
if nothing
-
getFieldId
String getFieldId() -
getCustomField
Deprecated.since v8.15 use thegetConfigurableField()
.Returns the related custom field. This is very much a legacy method asFieldConfig
was originally only used for customfields. Should eventually return aConfigurableField
- Returns:
- Related
CustomField
- Throws:
DataAccessException
- if the fieldId does not refer to a valid custom field
-
getConfigurableField
Returns the related configurable field.- Returns:
- Related
ConfigurableField
- Since:
- 8.16
-
getConfigurableField()
.