public interface

LabelUtil

com.atlassian.jira.issue.label.LabelUtil
Known Indirect Subclasses

Class Overview

Utility to generate Label JQL strings.

Summary

Public Methods
String getLabelJql(ApplicationUser user, Long customFieldId, String label)
This method is deprecated. Since 7.1 beucase it generate old fashioned URLs. Use getLabelSearchPath(ApplicationUser, Long, String) instead.
String getLabelJql(ApplicationUser user, String label)
This method is deprecated. Since 7.1 beucase it generate old fashioned URLs. Use getLabelSearchPath(ApplicationUser, String) instead.
String getLabelJqlForProject(ApplicationUser user, Long projectId, String label)
This method is deprecated. Since 7.1 beucase it generate old fashioned URLs. Use getLabelSearchPathForProject(ApplicationUser, Long, String) instead.
String getLabelJqlForProject(ApplicationUser user, Long projectId, Long customFieldId, String label)
This method is deprecated. Since 7.1 beucase it generate old fashioned URLs. Use getLabelSearchPathForProject(ApplicationUser, Long, Long, String) instead.
String 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 provided
String getLabelSearchPath(ApplicationUser user, String label)
Given a label this utility returns the URL to search for this label in the system labels field
String getLabelSearchPathForProject(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
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

Public Methods

public String getLabelJql (ApplicationUser user, Long customFieldId, String label)

This method is deprecated.
Since 7.1 beucase it generate old fashioned URLs. Use getLabelSearchPath(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 search
customFieldId The CustomField Id of the labels custom field
label The label string to search for
Returns
  • A jql string representing a valid query to search for this label

public String getLabelJql (ApplicationUser user, String label)

This method is deprecated.
Since 7.1 beucase it generate old fashioned URLs. Use getLabelSearchPath(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 search
label The label string to search for
Returns
  • A jql string representing a valid query to search for this label

public String getLabelJqlForProject (ApplicationUser user, Long projectId, String label)

This method is deprecated.
Since 7.1 beucase it generate old fashioned URLs. Use getLabelSearchPathForProject(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 search
projectId The project to limit the search
label The label string to search for
Returns
  • A jql string representing a valid query to search for this label

public String getLabelJqlForProject (ApplicationUser user, Long projectId, Long customFieldId, String label)

This method is deprecated.
Since 7.1 beucase it generate old fashioned URLs. Use getLabelSearchPathForProject(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 search
projectId The project to limit the search
customFieldId The CustomField Id of the labels custom field
label The label string to search for
Returns
  • A jql string representing a valid query to search for this label

public String 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 provided

Parameters
user The user running the search
customFieldId The CustomField Id of the labels custom field
label The label string to search for
Returns
  • A jql string representing a valid query to search for this label

public String getLabelSearchPath (ApplicationUser user, String label)

Given a label this utility returns the URL to search for this label in the system labels field

Parameters
user The user running the search
label The label string to search for
Returns
  • A jql string representing a valid query to search for this label

public String getLabelSearchPathForProject (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

Parameters
user The user running the search
projectId The project to limit the search
label The label string to search for
Returns
  • A jql string representing a valid query to search for this label

public 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 search
projectId The project to limit the search
customFieldId The CustomField Id of the labels custom field
label The label string to search for
Returns
  • A jql string representing a valid query to search for this label