Class CloneOptionConfiguration
java.lang.Object
com.atlassian.jira.issue.customfields.CloneOptionConfiguration
Configures a clone option for a given custom field in the context of an issue. A clone option configuration
controls whether an option is displayed on the clone dialog, the label displayed when the option is displayed, and
the option's initial state, i.e. whether it's selected by default.
- Since:
- 7.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CloneOptionConfigurationAn instance of CloneOptionConfiguration that indicates the clone option should not be displayed on the clone dialog. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreates an instance of CloneOptionConfiguration to represent a clone option that gets displayed in the clone dialog with the same label as this option's label and is selected by default.booleanstatic CloneOptionConfigurationwithOptionLabel(String optionLabel) Creates an instance of CloneOptionConfiguration to represent a clone option that gets displayed in the clone dialog with the specified label.
-
Field Details
-
DO_NOT_DISPLAY
An instance of CloneOptionConfiguration that indicates the clone option should not be displayed on the clone dialog.
-
-
Method Details
-
shouldDisplayOption
public boolean shouldDisplayOption()- Returns:
- A boolean that indicates whether this option should be displayed on the clone dialog.
-
getOptionLabel
- Returns:
- Label to be displayed for this clone option.
-
isOptionSelectedByDefault
public boolean isOptionSelectedByDefault()- Returns:
- A boolean that indicates whether this option is selected by default.
-
withOptionLabel
Creates an instance of CloneOptionConfiguration to represent a clone option that gets displayed in the clone dialog with the specified label. This clone option will not be selected by default.- Parameters:
optionLabel- Label of clone option- Returns:
- An instance of CloneOptionConfiguration to represent a clone option that gets displayed in the clone dialog with the specified label.
-
selectOptionByDefault
Creates an instance of CloneOptionConfiguration to represent a clone option that gets displayed in the clone dialog with the same label as this option's label and is selected by default.- Returns:
- An instance of CloneOptionConfiguration to represent a clone option that gets displayed in the clone dialog with the same label as this option's label and is selected by default.
-