Class FieldInputValue

java.lang.Object
com.atlassian.servicedesk.api.field.FieldInputValue

@PublicApi public class FieldInputValue extends Object
Represents a value passed in via the API when creating a Request. Fields in the Jira platform can support RestFieldOperations and hence the input values are JSON ready objects. The object value will be interpreted with JSON semantics according to the specific field requirements.

So a simple field like summary or number customer field might take String / Integer while other fields like Multi User Picker will take a more complex object that has JSON semantics.

The JIRA / JSM REST documentation has a reference on what field types take what values.

  • Method Details

    • withValue

      public static FieldInputValue withValue(Object value)
      Create a new instance using the supplied value, which is shaped specific to the field being set.
      Parameters:
      value - the object value
      Returns:
      a FieldInputValue instance
    • value

      public Object value()
      Returns:
      The value of the field to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object