Class DefaultLabelUtil

java.lang.Object
com.atlassian.jira.issue.label.DefaultLabelUtil
All Implemented Interfaces:
LabelUtil

public class DefaultLabelUtil extends Object implements LabelUtil
  • Constructor Details

  • Method Details

    • getLabelJql

      public String getLabelJql(ApplicationUser user, String label)
      Description copied from interface: LabelUtil
      Given a label this utility returns a JQL string to search for this label in the system labels field
      Specified by:
      getLabelJql in interface LabelUtil
      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
    • getLabelJql

      public String getLabelJql(ApplicationUser user, Long customFieldId, String label)
      Description copied from interface: LabelUtil
      Given a label and custom field Id, this utility returns a JQL string to search for this label in the custom field provided
      Specified by:
      getLabelJql in interface LabelUtil
      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
    • getLabelJqlForProject

      public String getLabelJqlForProject(ApplicationUser user, Long projectId, String label)
      Description copied from interface: LabelUtil
      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
      Specified by:
      getLabelJqlForProject in interface LabelUtil
      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
    • getLabelJqlForProject

      public String getLabelJqlForProject(ApplicationUser user, Long projectId, Long customFieldId, String label)
      Description copied from interface: LabelUtil
      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
      Specified by:
      getLabelJqlForProject in interface LabelUtil
      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
    • getLabelSearchPath

      public String getLabelSearchPath(ApplicationUser user, String label)
      Description copied from interface: LabelUtil
      Given a label this utility returns the URL to search for this label in the system labels field
      Specified by:
      getLabelSearchPath in interface LabelUtil
      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
    • getLabelSearchPath

      public String getLabelSearchPath(ApplicationUser user, Long customFieldId, String label)
      Description copied from interface: LabelUtil
      Given a label and custom field Id, this utility returns the URL to search for this label in the custom field provided
      Specified by:
      getLabelSearchPath in interface LabelUtil
      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
    • getLabelSearchPathForProject

      public String getLabelSearchPathForProject(ApplicationUser user, Long projectId, String label)
      Description copied from interface: LabelUtil
      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
      Specified by:
      getLabelSearchPathForProject in interface LabelUtil
      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
    • getLabelSearchPathForProject

      public String getLabelSearchPathForProject(ApplicationUser user, Long projectId, Long customFieldId, String label)
      Description copied from interface: LabelUtil
      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
      Specified by:
      getLabelSearchPathForProject in interface LabelUtil
      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