public class FieldMapperRegistry extends Object
FieldMapperRegistry
maps String input values to a JIRA ReST API representation.IssueInputBuilder.setFieldValue(String, Object)
Constructor and Description |
---|
FieldMapperRegistry(Properties properties) |
Modifier and Type | Method and Description |
---|---|
protected static Map<String,String> |
buildLookupMap(Properties properties)
The jira.properties may contain properties to define the lookup strategy for fields.
|
protected static com.atlassian.jira.rest.client.api.domain.input.ComplexIssueInputFieldValue |
createComplexInputFieldValue(Map<String,String> lookupMap,
String lookupKey,
String defaultKey,
String input) |
java.util.function.Function<String,?> |
lookup(String type,
String variant)
Helper method to lookup a Function to convert a value by its type and variant to the Jira ReST API representation.
|
public FieldMapperRegistry(Properties properties)
protected static com.atlassian.jira.rest.client.api.domain.input.ComplexIssueInputFieldValue createComplexInputFieldValue(Map<String,String> lookupMap, String lookupKey, String defaultKey, String input)
protected static Map<String,String> buildLookupMap(Properties properties)
properties
- public java.util.function.Function<String,?> lookup(String type, String variant)
type
- The type, e.g. "user", "group", "version", "array", etc.variant
- The variant. Is only set if "type" is "array". In that case, the "variant" defines each element in the array (e.g. "user", "version", etc)Copyright © 2017. All rights reserved.