Interface OptionSet

All Known Implementing Classes:
IssueConstantOptionSet

@PublicApi public interface OptionSet
A set of options representing the listing order for issue constants.

For example, the field configuration for a project might change the order that issue types are listed in from the default order to some other order and need not include all of the issue types that exist.

Since:
3.4
  • Method Details

    • getOptions

      Collection<Option> getOptions()
      List of options for this set
      Returns:
      List of Option objects
    • getOptionIds

      Collection<String> getOptionIds()
      Get the list of options ids
      Returns:
      List of String objects
    • addOption

      void addOption(String constantType, String constantId)
      Adds the option to the underlying list.

      Note that this does not write through to the database. Use OptionSetManager.updateOptionSet(FieldConfig, Collection) for that.

      Parameters:
      constantType - the type of issue constant that the new option will represent, such as an IssueType
      constantId - the issue constant ID for the issue constant that this option will represent.