Class FieldExportParts

java.lang.Object
com.atlassian.jira.issue.export.FieldExportParts

@ExperimentalApi public class FieldExportParts extends Object
This represents a Field to be exported and can contain multiple parts within it.

It is common to have just one "part" but a complex field may want more than one. For example, a "Money" field might have a "currency" part and an "amount" part.

In turn, each part may have a single value or multiple values (for multi-value fields). for building this object.

Since:
7.2.0
  • Method Details

    • getParts

      public List<FieldExportPart> getParts()
      Each field export can have multiple parts within it that represent a different component of the field. This returns the list of these parts in order that it should be outputted as.
      Returns:
      the list of parts that are needed to represent this field representation.
    • getPartWithId

      public Optional<FieldExportPart> getPartWithId(String id)
      Each of the parts in the field export have an id to represent it. This returns the part with a given id or an empty Option if it cannot be found.
      Parameters:
      id - to find the part for
      Returns:
      optional part