com.atlassian.bamboo.deployments.versions.service
Interface DeploymentVersionLinkedJiraIssuesService

All Known Implementing Classes:
DeploymentVersionLinkedJiraIssuesServiceImpl

public interface DeploymentVersionLinkedJiraIssuesService

Service for managing JIRA issues linked to DeploymentVersion


Method Summary
 java.util.List<DeploymentVersionLinkedJiraIssue> compareVersionsByJiraIssues(long deploymentProjectId, DeploymentVersion version1, DeploymentVersion version2)
          Get JIRA issue links for comparing two versions, i.e.
 int getJiraIssueCountForDeploymentVersion(long deploymentVersionId)
          Get count of all JIRA issues associated with DeploymentVersion
 java.util.Set<java.lang.String> getJiraIssueKeysForDeploymentVersion(long deploymentVersionId)
          Get keys of all JIRA issues associated with a DeploymentVersion
 java.util.List<DeploymentVersionLinkedJiraIssue> getJiraIssuesForDeploymentVersion(long deploymentVersionId)
          Get all JIRA issues associated with DeploymentVersion
 java.util.SortedMap<java.lang.String,DeploymentVersionLinkedJiraIssue> getJiraIssuesForDeploymentVersionsMap(long deploymentVersionId)
          Get all JIRA issues associated with DeploymentVersion as mapping between issue key and DeploymentVersionLinkedJiraIssue
 java.util.List<InternalLinkedJiraIssue> getJiraIssuesForNewDeploymentVersion(long deploymentProjectId, PlanResultKey planResultKey)
          Finds the relevant jira issues if a new version would be created from planResultKey.
 

Method Detail

getJiraIssueKeysForDeploymentVersion

java.util.Set<java.lang.String> getJiraIssueKeysForDeploymentVersion(long deploymentVersionId)
Get keys of all JIRA issues associated with a DeploymentVersion

Parameters:
deploymentVersionId -
Returns:

getJiraIssuesForDeploymentVersion

java.util.List<DeploymentVersionLinkedJiraIssue> getJiraIssuesForDeploymentVersion(long deploymentVersionId)
Get all JIRA issues associated with DeploymentVersion

Parameters:
deploymentVersionId -
Returns:

getJiraIssueCountForDeploymentVersion

int getJiraIssueCountForDeploymentVersion(long deploymentVersionId)
Get count of all JIRA issues associated with DeploymentVersion

Parameters:
deploymentVersionId - id of the version
Returns:
number of issues linked with DeploymentVersion

getJiraIssuesForDeploymentVersionsMap

java.util.SortedMap<java.lang.String,DeploymentVersionLinkedJiraIssue> getJiraIssuesForDeploymentVersionsMap(long deploymentVersionId)
Get all JIRA issues associated with DeploymentVersion as mapping between issue key and DeploymentVersionLinkedJiraIssue

Parameters:
deploymentVersionId -
Returns:

compareVersionsByJiraIssues

java.util.List<DeploymentVersionLinkedJiraIssue> compareVersionsByJiraIssues(long deploymentProjectId,
                                                                             @NotNull
                                                                             DeploymentVersion version1,
                                                                             @NotNull
                                                                             DeploymentVersion version2)
Get JIRA issue links for comparing two versions, i.e. all JIRA issue linked to versions newer than older of the two versions up to (and including) then newer version.

Parameters:
deploymentProjectId -
version1 - 1st version to compare (may be older or newer than version2)
version2 - 2nd version to compare (may be older or newer than version1)
Returns:

getJiraIssuesForNewDeploymentVersion

@NotNull
java.util.List<InternalLinkedJiraIssue> getJiraIssuesForNewDeploymentVersion(long deploymentProjectId,
                                                                                     PlanResultKey planResultKey)
Finds the relevant jira issues if a new version would be created from planResultKey. Doesn't save anything to db,

Parameters:
deploymentProjectId - id of the deployment project
planResultKey - of the build result we want to create version from
Returns:


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.