Class LabelSuggesterUtils
java.lang.Object
com.atlassian.jira.issue.label.suggestions.LabelSuggesterUtils
Utility class for label suggestions.
- Since:
- 11.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoExactMatchRegex(Set<Label> selectedLabels) Converts a set of selected labels into a regex pattern that matches any of the labels.
-
Constructor Details
-
LabelSuggesterUtils
public LabelSuggesterUtils()
-
-
Method Details
-
toExactMatchRegex
Converts a set of selected labels into a regex pattern that matches any of the labels. If the set is empty, returns an empty Optional.- Parameters:
selectedLabels- the set of selected labels- Returns:
- an Optional containing the regex pattern or empty if no labels are selected
-