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
 java.lang.String getLabelJql(com.opensymphony.user.User user, java.lang.Long customFieldId, java.lang.String label)
          Given a label and custom field Id, this utility returns a JQL string to search for this label in the custom field provided
 java.lang.String getLabelJql(com.opensymphony.user.User user, java.lang.String label)
          Given a label this utility returns a JQL string to search for this label in the system labels field
 java.lang.String getLabelJqlForProject(com.opensymphony.user.User user, java.lang.Long projectId, java.lang.Long customFieldId, java.lang.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 provided
 java.lang.String getLabelJqlForProject(com.opensymphony.user.User user, java.lang.Long projectId, java.lang.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 provided
 

Method Detail

getLabelJql

java.lang.String getLabelJql(com.opensymphony.user.User user,
                             java.lang.String label)
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

getLabelJql

java.lang.String getLabelJql(com.opensymphony.user.User user,
                             java.lang.Long customFieldId,
                             java.lang.String label)
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

getLabelJqlForProject

java.lang.String getLabelJqlForProject(com.opensymphony.user.User user,
                                       java.lang.Long projectId,
                                       java.lang.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 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

getLabelJqlForProject

java.lang.String getLabelJqlForProject(com.opensymphony.user.User user,
                                       java.lang.Long projectId,
                                       java.lang.Long customFieldId,
                                       java.lang.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 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


Copyright © 2002-2010 Atlassian. All Rights Reserved.