@PublicApi
public interface FieldConfig
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..
IssueContextImpl
issueContext = newIssueContextImpl.IssueContextImpl(Long, String)
IssueContextImpl(projectId, issueTypeId)};FieldConfig
fieldConfig =cf.getRelevantConfig(issueContext)
;Options
options =optionsManager.getOptions(fieldConfig)
;
FieldConfigScheme
,
FieldConfigItem
,
ConfigurableField
Modifier and Type | Method and Description |
---|---|
List<FieldConfigItem> |
getConfigItems()
Returns a list of FieldConfigItems.
|
<T> ConfigurableField<T> |
getConfigurableField()
Returns the related configurable field.
|
CustomField |
getCustomField()
Deprecated.
since v8.15 use the
getConfigurableField() . |
String |
getDescription() |
String |
getFieldId() |
Long |
getId() |
String |
getName() |
Long getId()
String getName()
String getDescription()
List<FieldConfigItem> getConfigItems()
FieldConfigItem
s. Collections.emptyList()
if nothingString getFieldId()
@Deprecated CustomField getCustomField()
getConfigurableField()
.FieldConfig
was originally only
used for customfields. Should eventually return a ConfigurableField
CustomField
DataAccessException
- if the fieldId does not refer to a valid custom field@ExperimentalApi <T> ConfigurableField<T> getConfigurableField()
ConfigurableField
Copyright © 2002-2024 Atlassian. All Rights Reserved.