Class AbstractModifyableOptionKeyFieldMapper

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractModifyableOptionKeyFieldMapper​(java.util.function.Supplier<java.util.Map<java.lang.String,​java.lang.String>> optionKeySupplier)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.atlassian.jira.rest.client.api.domain.input.ComplexIssueInputFieldValue createComplexIssueInputField​(java.lang.String fieldId, java.lang.String defaultKey, java.lang.Object value)
      Allows overwriting the optionKey with the value defined in optionKeySupplier.
      java.lang.String getOptionKey​(java.lang.String fieldId, java.lang.String defaultKey)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractModifyableOptionKeyFieldMapper

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

      • createComplexIssueInputField

        public com.atlassian.jira.rest.client.api.domain.input.ComplexIssueInputFieldValue createComplexIssueInputField​(java.lang.String fieldId,
                                                                                                                        java.lang.String defaultKey,
                                                                                                                        java.lang.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)
      • getOptionKey

        public java.lang.String getOptionKey​(java.lang.String fieldId,
                                             java.lang.String defaultKey)