Package com.atlassian.jira.issue.label
Interface LabelUtil
- All Known Implementing Classes:
DefaultLabelUtil
public interface LabelUtil
Utility to generate Label JQL strings.
- Since:
- v4.2
-
Method Summary
Modifier and TypeMethodDescriptiongetLabelJql(ApplicationUser user, Long customFieldId, String label) Deprecated.Since 7.1 beucase it generate old fashioned URLs.getLabelJql(ApplicationUser user, String label) Deprecated.Since 7.1 beucase it generate old fashioned URLs.getLabelJqlForProject(ApplicationUser user, Long projectId, Long customFieldId, String label) Deprecated.Since 7.1 beucase it generate old fashioned URLs.getLabelJqlForProject(ApplicationUser user, Long projectId, String label) Deprecated.Since 7.1 beucase it generate old fashioned URLs.getLabelSearchPath(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
-
Method Details
-
getLabelJql
Deprecated.Since 7.1 beucase it generate old fashioned URLs. UsegetLabelSearchPath(ApplicationUser, String)instead.Given a label this utility returns a JQL string to search for this label in the system labels field- 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
Deprecated.Since 7.1 beucase it generate old fashioned URLs. UsegetLabelSearchPath(ApplicationUser, Long, String)instead.Given a label and custom field Id, this utility returns a JQL string to search for this label in the custom field provided- 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
Deprecated.Since 7.1 beucase it generate old fashioned URLs. UsegetLabelSearchPathForProject(ApplicationUser, Long, String)instead.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 provided- 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
String getLabelJqlForProject(ApplicationUser user, Long projectId, Long customFieldId, String label) Deprecated.Since 7.1 beucase it generate old fashioned URLs. UsegetLabelSearchPathForProject(ApplicationUser, Long, Long, String)instead.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 provided- 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
Given a label this utility returns the URL to search for this label in the system labels field- 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
- Since:
- 7.1
-
getLabelSearchPath
Given a label and custom field Id, this utility returns the URL to search for this label in the custom field provided- 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
- Since:
- 7.1
-
getLabelSearchPathForProject
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- 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
- Since:
- 7.1
-
getLabelSearchPathForProject
String getLabelSearchPathForProject(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 provided- 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
- Since:
- 7.1
-