Class FieldMapperRegistry


  • public class FieldMapperRegistry
    extends Object
    The FieldMapperRegistry maps String input values to a JIRA ReST API representation.
    Author:
    mvrueden
    See Also:
    IssueInputBuilder.setFieldValue(String, Object)
    • Constructor Detail

      • FieldMapperRegistry

        public FieldMapperRegistry​(Properties properties)
    • Method Detail

      • buildLookupMap

        protected static Map<String,​String> buildLookupMap​(Properties properties)
        The jira.properties may contain properties to define the lookup strategy for fields. Usually the default is to lookup a (custom) field by it's name. This can be overwritten, e.g. jira.attributes.project.resolution=id to overwrite it's default key lookup to id lookup.
        Parameters:
        properties -
        Returns:
      • lookup

        public FieldMapper lookup​(com.atlassian.jira.rest.client.api.domain.FieldSchema schema)
        Returns the FieldMapper, which is registered with schema.
        Parameters:
        schema - The schema to lookup a FieldMapper for.
        Returns:
        the FieldMapper, which is registered with schema.