Package com.atlassian.bamboo.build
Interface JiraIssueResultsManager
-
- All Known Implementing Classes:
JiraIssueResultsManagerImpl
public interface JiraIssueResultsManager
A manager to search for builds for given JIRA parameters
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull PartialList<ResultsSummary>
findBuildResultsByJiraIssueKey(@NotNull List<String> issueKeys, int maxResults)
Finds a list of completed Build Results given issue keys@NotNull PartialList<? extends ResultsSummary>
findBuildResultsByProjectKey(@NotNull String projectKey, int maxResults)
Finds completed Build Results given a project key@NotNull PartialList<? extends ResultsSummary>
findBuildResultsByProjectKeys(@NotNull List<String> projectKeys, int maxResults)
Finds build results given a project keys@NotNull List<LinkedJiraIssue>
findJiraIssuesForBuildResults(@NotNull List<ResultsSummary> buildResults)
Finds a list of jira issues linked to the given build results@NotNull List<LinkedJiraIssue>
findJiraIssuesForPlanKey(@NotNull PlanKey planKey)
Finds a list of jira issues linked to a particular build key@NotNull Collection<String>
findPlanKeysByIssueKeys(@NotNull List<String> issueKeys)
@NotNull Collection<String>
findPlanKeysByJiraProjectKey(@NotNull String projectKey)
Returns a list of plans that's associated with@NotNull Collection<String>
findPlanKeysByJiraProjectKeys(@NotNull List<String> projectKeys)
Returns a list of plans that's associated withint
getNumberOfRelatedBuildsByIssueKey(@NotNull List<String> issueKeys)
Counts the number of completed Build Results related to these issues
-
-
-
Method Detail
-
findBuildResultsByJiraIssueKey
@NotNull @NotNull PartialList<ResultsSummary> findBuildResultsByJiraIssueKey(@NotNull @NotNull List<String> issueKeys, int maxResults)
Finds a list of completed Build Results given issue keys- Parameters:
issueKeys
-maxResults
-- Returns:
List
ofResultsSummary
. Empty if no matches
-
getNumberOfRelatedBuildsByIssueKey
int getNumberOfRelatedBuildsByIssueKey(@NotNull @NotNull List<String> issueKeys)
Counts the number of completed Build Results related to these issues- Parameters:
issueKeys
-- Returns:
-
findBuildResultsByProjectKey
@NotNull @NotNull PartialList<? extends ResultsSummary> findBuildResultsByProjectKey(@NotNull @NotNull String projectKey, int maxResults)
Finds completed Build Results given a project key- Parameters:
projectKey
-maxResults
-- Returns:
-
findBuildResultsByProjectKeys
@NotNull @NotNull PartialList<? extends ResultsSummary> findBuildResultsByProjectKeys(@NotNull @NotNull List<String> projectKeys, int maxResults)
Finds build results given a project keys- Parameters:
projectKeys
-maxResults
-- Returns:
-
findPlanKeysByJiraProjectKey
@NotNull @NotNull Collection<String> findPlanKeysByJiraProjectKey(@NotNull @NotNull String projectKey)
Returns a list of plans that's associated with- Parameters:
projectKey
-- Returns:
-
findPlanKeysByJiraProjectKeys
@NotNull @NotNull Collection<String> findPlanKeysByJiraProjectKeys(@NotNull @NotNull List<String> projectKeys)
Returns a list of plans that's associated with- Parameters:
projectKeys
-- Returns:
-
findPlanKeysByIssueKeys
@NotNull @NotNull Collection<String> findPlanKeysByIssueKeys(@NotNull @NotNull List<String> issueKeys)
- Returns:
-
findJiraIssuesForBuildResults
@NotNull @NotNull List<LinkedJiraIssue> findJiraIssuesForBuildResults(@NotNull @NotNull List<ResultsSummary> buildResults)
Finds a list of jira issues linked to the given build results- Parameters:
buildResults
-List
ofResultsSummary
- Returns:
List
ofLinkedJiraIssue
-
findJiraIssuesForPlanKey
@NotNull @NotNull List<LinkedJiraIssue> findJiraIssuesForPlanKey(@NotNull @NotNull PlanKey planKey)
Finds a list of jira issues linked to a particular build key- Parameters:
planKey
- key to buildPlan
- Returns:
List
ofLinkedJiraIssue
-
-