@ExperimentalApi public interface

SimpleOption

com.atlassian.jira.issue.customfields.option.SimpleOption<T extends com.atlassian.jira.issue.customfields.option.SimpleOption<T>>
Known Indirect Subclasses

@ExperimentalApi

This interface is considered usable by external developers but its contracts have not stabilized.

Experimental APIs may be changed at any time before being marked @Internal or @PublicApi.

Class Overview

Represents the basic properties of a custom field option in JIRA. The Option is more heavy weight interface that can be used when the options actually exist in the database.

Summary

Public Methods
@Nonnull List<T> getChildOptions()
Return a list of options that exist under this option (i.e.
@Nullable Long getOptionId()
The ID of the option or null if it currently does not have one.
String getValue()
The current value of the option.

Public Methods

@Nonnull public List<T> getChildOptions ()

Return a list of options that exist under this option (i.e. its children).

Returns
  • the list of options that exist under this option. An empty list is returned when such options exist.

@Nullable public Long getOptionId ()

The ID of the option or null if it currently does not have one.

Returns
  • the ID of the option or null if it does not have one.

public String getValue ()

The current value of the option. This is the option displayed to the user.

Returns
  • the value of the option.