Class AbstractModifyableOptionKeyFieldMapper

    • Constructor Detail

      • AbstractModifyableOptionKeyFieldMapper

        protected AbstractModifyableOptionKeyFieldMapper​(java.util.function.Supplier<Map<String,​String>> optionKeySupplier)
    • Method Detail

      • createComplexIssueInputField

        public 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.
        Parameters:
        fieldId - the id of the field
        defaultKey - the default option key (e.g. value, name, key, etc.)
        value - The value to set
        Returns:
        The ComplexIssueInputFieldValue either with defaultKey or the key defined in jira.properties.
        See Also:
        FieldMapperRegistry.buildLookupMap(Properties)