com.atlassian.bamboo.build
Interface JiraIssueResultsManager

All Known Implementing Classes:
LuceneBasedJiraIssueResultsManagerImpl

public interface JiraIssueResultsManager

A manager to search for builds for given JIRA parameters


Method Summary
 PartialList<? extends ResultsSummary> findBuildResultsByJiraIssueKey(java.util.List<java.lang.String> issueKeys, int maxResults)
          Finds a list of Build Results given issue keys
 PartialList<? extends ResultsSummary> findBuildResultsByProjectKey(java.lang.String projectKey, int maxResults)
          Finds build results given a project key
 java.util.List<LinkedJiraIssue> findJiraIssuesForBuild(Plan plan)
          Finds a list of jira issues linked to a particular build
 java.util.List<LinkedJiraIssue> findJiraIssuesForBuildResults(java.util.List<ResultsSummary> buildResults)
          Finds a list of jira issues linked to the given build results
 java.util.Collection<java.lang.String> findPlanKeysByIssueKeys(java.util.List<java.lang.String> issueKeys)
           
 java.util.Collection<java.lang.String> findPlanKeysByJiraProjectKey(java.lang.String projectKey)
          Returns a list of plans that's associated with
 int getNumberOfRelatedBuildsByIssueKey(java.util.List<java.lang.String> issueKeys)
          Counts the number of builds related to these issues
 

Method Detail

findBuildResultsByJiraIssueKey

@NotNull
PartialList<? extends ResultsSummary> findBuildResultsByJiraIssueKey(@Nullable
                                                                             java.util.List<java.lang.String> issueKeys,
                                                                             int maxResults)
Finds a list of Build Results given issue keys

Parameters:
issueKeys -
maxResults -
Returns:
List of ResultsSummary. Empty if no matches

getNumberOfRelatedBuildsByIssueKey

int getNumberOfRelatedBuildsByIssueKey(@Nullable
                                       java.util.List<java.lang.String> issueKeys)
Counts the number of builds related to these issues

Parameters:
issueKeys -
Returns:

findBuildResultsByProjectKey

@NotNull
PartialList<? extends ResultsSummary> findBuildResultsByProjectKey(@NotNull
                                                                           java.lang.String projectKey,
                                                                           int maxResults)
Finds build results given a project key

Parameters:
projectKey -
maxResults -
Returns:

findPlanKeysByJiraProjectKey

@NotNull
java.util.Collection<java.lang.String> findPlanKeysByJiraProjectKey(@NotNull
                                                                            java.lang.String projectKey)
Returns a list of plans that's associated with

Parameters:
projectKey -
Returns:

findPlanKeysByIssueKeys

@NotNull
java.util.Collection<java.lang.String> findPlanKeysByIssueKeys(@NotNull
                                                                       java.util.List<java.lang.String> issueKeys)
Returns:

findJiraIssuesForBuildResults

@NotNull
java.util.List<LinkedJiraIssue> findJiraIssuesForBuildResults(@NotNull
                                                                      java.util.List<ResultsSummary> buildResults)
Finds a list of jira issues linked to the given build results

Parameters:
buildResults - List of ResultsSummary
Returns:
List of LinkedJiraIssue

findJiraIssuesForBuild

@NotNull
java.util.List<LinkedJiraIssue> findJiraIssuesForBuild(@NotNull
                                                               Plan plan)
Finds a list of jira issues linked to a particular build

Parameters:
plan - Plan
Returns:
List of LinkedJiraIssue


Copyright © 2012 Atlassian. All Rights Reserved.