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<ResultsSummary> findBuildResultsByJiraIssueKey(List<String> issueKeys, int maxResults)
          Finds a list of completed Build Results given issue keys
 PartialList<? extends ResultsSummary> findBuildResultsByProjectKey(String projectKey, int maxResults)
          Finds completed Build Results given a project key
 PartialList<? extends ResultsSummary> findBuildResultsByProjectKeys(List<String> projectKeys, int maxResults)
          Finds build results given a project keys
 List<LinkedJiraIssue> findJiraIssuesForBuild(ImmutablePlan plan)
          Deprecated. replaced by #findJiraIssuesForPlanKey(String)}
 List<LinkedJiraIssue> findJiraIssuesForBuildResults(List<ResultsSummary> buildResults)
          Finds a list of jira issues linked to the given build results
 List<LinkedJiraIssue> findJiraIssuesForPlanKey(PlanKey planKey)
          Finds a list of jira issues linked to a particular build key
 Collection<String> findPlanKeysByIssueKeys(List<String> issueKeys)
           
 Collection<String> findPlanKeysByJiraProjectKey(String projectKey)
          Returns a list of plans that's associated with
 Collection<String> findPlanKeysByJiraProjectKeys(List<String> projectKeys)
          Returns a list of plans that's associated with
 int getNumberOfRelatedBuildsByIssueKey(List<String> issueKeys)
          Counts the number of completed Build Results related to these issues
 

Method Detail

findBuildResultsByJiraIssueKey

@NotNull
PartialList<ResultsSummary> findBuildResultsByJiraIssueKey(@Nullable
                                                                   List<String> issueKeys,
                                                                   int maxResults)
Finds a list of completed Build Results given issue keys

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

getNumberOfRelatedBuildsByIssueKey

int getNumberOfRelatedBuildsByIssueKey(@Nullable
                                       List<String> issueKeys)
Counts the number of completed Build Results related to these issues

Parameters:
issueKeys -
Returns:

findBuildResultsByProjectKey

@NotNull
PartialList<? extends ResultsSummary> findBuildResultsByProjectKey(@NotNull
                                                                           String projectKey,
                                                                           int maxResults)
Finds completed Build Results given a project key

Parameters:
projectKey -
maxResults -
Returns:

findBuildResultsByProjectKeys

@NotNull
PartialList<? extends ResultsSummary> findBuildResultsByProjectKeys(@NotNull
                                                                            List<String> projectKeys,
                                                                            int maxResults)
Finds build results given a project keys

Parameters:
projectKeys -
maxResults -
Returns:

findPlanKeysByJiraProjectKey

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

Parameters:
projectKey -
Returns:

findPlanKeysByJiraProjectKeys

@NotNull
Collection<String> findPlanKeysByJiraProjectKeys(@NotNull
                                                         List<String> projectKeys)
Returns a list of plans that's associated with

Parameters:
projectKeys -
Returns:

findPlanKeysByIssueKeys

@NotNull
Collection<String> findPlanKeysByIssueKeys(@NotNull
                                                   List<String> issueKeys)
Returns:

findJiraIssuesForBuildResults

@NotNull
List<LinkedJiraIssue> findJiraIssuesForBuildResults(@NotNull
                                                            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

@Deprecated
@NotNull
List<LinkedJiraIssue> findJiraIssuesForBuild(@NotNull
                                                                ImmutablePlan plan)
Deprecated. replaced by #findJiraIssuesForPlanKey(String)}

Finds a list of jira issues linked to a particular build

Parameters:
plan - Plan
Returns:
List of LinkedJiraIssue

findJiraIssuesForPlanKey

@NotNull
List<LinkedJiraIssue> findJiraIssuesForPlanKey(@NotNull
                                                       PlanKey planKey)
Finds a list of jira issues linked to a particular build key

Parameters:
planKey - key to build Plan
Returns:
List of LinkedJiraIssue


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.