Package com.atlassian.jira.issue.label
Class DefaultLabelUtil
java.lang.Object
com.atlassian.jira.issue.label.DefaultLabelUtil
- All Implemented Interfaces:
LabelUtil
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultLabelUtil(SearchService searchService, CustomFieldManager customFieldManager) -
Method Summary
Modifier and TypeMethodDescriptiongetLabelJql(ApplicationUser user, Long customFieldId, String label) Given a label and custom field Id, this utility returns a JQL string to search for this label in the custom field providedgetLabelJql(ApplicationUser user, String label) Given a label this utility returns a JQL string to search for this label in the system labels fieldgetLabelJqlForProject(ApplicationUser user, Long projectId, Long customFieldId, String label) Given a label, project id and custom field id, this utility returns a JQL string to search for this label in the label custom field, limited by the project providedgetLabelJqlForProject(ApplicationUser user, Long projectId, String label) Given a label and project id, this utility returns a JQL string to search for this label in the label system field, limited by the project providedgetLabelSearchPath(ApplicationUser user, Long customFieldId, String label) Given a label and custom field Id, this utility returns the URL to search for this label in the custom field providedgetLabelSearchPath(ApplicationUser user, String label) Given a label this utility returns the URL to search for this label in the system labels fieldgetLabelSearchPathForProject(ApplicationUser user, Long projectId, Long customFieldId, String label) Given a label, project id and custom field id, this utility returns the URL to search for this label in the label custom field, limited by the project providedgetLabelSearchPathForProject(ApplicationUser user, Long projectId, String label) Given a label and project id, this utility returns the URL to search for this label in the label system field, limited by the project provided
-
Constructor Details
-
DefaultLabelUtil
-
-
Method Details
-
getLabelJql
Description copied from interface:LabelUtilGiven a label this utility returns a JQL string to search for this label in the system labels field- Specified by:
getLabelJqlin interfaceLabelUtil- Parameters:
user- The user running the searchlabel- The label string to search for- Returns:
- A jql string representing a valid query to search for this label
-
getLabelJql
Description copied from interface:LabelUtilGiven a label and custom field Id, this utility returns a JQL string to search for this label in the custom field provided- Specified by:
getLabelJqlin interfaceLabelUtil- Parameters:
user- The user running the searchcustomFieldId- The CustomField Id of the labels custom fieldlabel- The label string to search for- Returns:
- A jql string representing a valid query to search for this label
-
getLabelJqlForProject
Description copied from interface:LabelUtilGiven a label and project id, this utility returns a JQL string to search for this label in the label system field, limited by the project provided- Specified by:
getLabelJqlForProjectin interfaceLabelUtil- Parameters:
user- The user running the searchprojectId- The project to limit the searchlabel- The label string to search for- Returns:
- A jql string representing a valid query to search for this label
-
getLabelJqlForProject
public String getLabelJqlForProject(ApplicationUser user, Long projectId, Long customFieldId, String label) Description copied from interface:LabelUtilGiven a label, project id and custom field id, this utility returns a JQL string to search for this label in the label custom field, limited by the project provided- Specified by:
getLabelJqlForProjectin interfaceLabelUtil- Parameters:
user- The user running the searchprojectId- The project to limit the searchcustomFieldId- The CustomField Id of the labels custom fieldlabel- The label string to search for- Returns:
- A jql string representing a valid query to search for this label
-
getLabelSearchPath
Description copied from interface:LabelUtilGiven a label this utility returns the URL to search for this label in the system labels field- Specified by:
getLabelSearchPathin interfaceLabelUtil- Parameters:
user- The user running the searchlabel- The label string to search for- Returns:
- A jql string representing a valid query to search for this label
-
getLabelSearchPath
Description copied from interface:LabelUtilGiven a label and custom field Id, this utility returns the URL to search for this label in the custom field provided- Specified by:
getLabelSearchPathin interfaceLabelUtil- Parameters:
user- The user running the searchcustomFieldId- The CustomField Id of the labels custom fieldlabel- The label string to search for- Returns:
- A jql string representing a valid query to search for this label
-
getLabelSearchPathForProject
Description copied from interface:LabelUtilGiven a label and project id, this utility returns the URL to search for this label in the label system field, limited by the project provided- Specified by:
getLabelSearchPathForProjectin interfaceLabelUtil- Parameters:
user- The user running the searchprojectId- The project to limit the searchlabel- The label string to search for- Returns:
- A jql string representing a valid query to search for this label
-
getLabelSearchPathForProject
public String getLabelSearchPathForProject(ApplicationUser user, Long projectId, Long customFieldId, String label) Description copied from interface:LabelUtilGiven a label, project id and custom field id, this utility returns the URL to search for this label in the label custom field, limited by the project provided- Specified by:
getLabelSearchPathForProjectin interfaceLabelUtil- Parameters:
user- The user running the searchprojectId- The project to limit the searchcustomFieldId- The CustomField Id of the labels custom fieldlabel- The label string to search for- Returns:
- A jql string representing a valid query to search for this label
-