public abstract class AbstractModifyableOptionKeyFieldMapper extends Object implements FieldMapper
FieldMapper
with a modifyable option key, such as component, project etc.Modifier | Constructor and Description |
---|---|
protected |
AbstractModifyableOptionKeyFieldMapper(java.util.function.Supplier<Map<String,String>> optionKeySupplier) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.jira.rest.client.api.domain.input.ComplexIssueInputFieldValue |
createComplexIssueInputField(String fieldId,
String defaultKey,
Object value)
Allows overwriting the optionKey with the value defined in
optionKeySupplier . |
String |
getOptionKey(String fieldId,
String defaultKey) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mapToFieldValue, matches
protected AbstractModifyableOptionKeyFieldMapper(java.util.function.Supplier<Map<String,String>> optionKeySupplier)
public com.atlassian.jira.rest.client.api.domain.input.ComplexIssueInputFieldValue createComplexIssueInputField(String fieldId, String defaultKey, Object value)
optionKeySupplier
.fieldId
- the id of the fielddefaultKey
- the default option key (e.g. value, name, key, etc.)value
- The value to setComplexIssueInputFieldValue
either with defaultKey or the key defined in jira.properties.FieldMapperRegistry.buildLookupMap(Properties)
Copyright © 2021. All rights reserved.