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 Summary
Modifier and TypeMethodDescriptionvoid
Adds the option to the underlying list.Get the list of options idsList of options for this set
-
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
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 IssueTypeconstantId
- theissue constant ID
for the issue constant that this option will represent.
-