Class DeploymentVersionLinkedJiraIssuesServiceImpl
java.lang.Object
com.atlassian.bamboo.deployments.versions.service.DeploymentVersionLinkedJiraIssuesServiceImpl
- All Implemented Interfaces:
DeploymentVersionLinkedJiraIssuesService
public class DeploymentVersionLinkedJiraIssuesServiceImpl
extends Object
implements DeploymentVersionLinkedJiraIssuesService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompareVersionsByJiraIssues(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.getIssuesChangedForDeploymentResult(long deploymentResultId) Finds issue keys for given deployment result Returns empty list if status of result build is unknown or if this and previous status is failed.intgetJiraIssueCountForDeploymentVersion(long deploymentVersionId) Get count of all JIRA issues associated withDeploymentVersiongetJiraIssueKeysForDeploymentVersion(long deploymentVersionId) Get keys of all JIRA issues associated with aDeploymentVersiongetJiraIssueKeysForProject(long deploymentProjectId) Get keys of all JIRA issues associated with aDeploymentProjectgetJiraIssuesForDeploymentVersion(long deploymentVersionId) DeploymentVersionEventListener Get all JIRA issues associated withDeploymentVersiongetJiraIssuesForDeploymentVersionsMap(long deploymentVersionId) Get all JIRA issues associated withDeploymentVersionas mapping between issue key andDeploymentVersionLinkedJiraIssue@NotNull List<InternalLinkedJiraIssue>getJiraIssuesForNewDeploymentVersion(long deploymentProjectId, PlanResultKey planResultKey) Finds the relevant jira issues if a new version would be created from planResultKey.@NotNull List<InternalLinkedJiraIssue>getJiraIssuesForNewDeploymentVersion(long deploymentProjectId, PlanResultKey planResultKey, DeploymentVersion previousVersion) Same as above, but gets all issues between a specific version and the planResultKey.
-
Constructor Details
-
DeploymentVersionLinkedJiraIssuesServiceImpl
public DeploymentVersionLinkedJiraIssuesServiceImpl()
-
-
Method Details
-
getJiraIssuesForDeploymentVersion
public List<DeploymentVersionLinkedJiraIssue> getJiraIssuesForDeploymentVersion(long deploymentVersionId) Description copied from interface:DeploymentVersionLinkedJiraIssuesServiceDeploymentVersionEventListener Get all JIRA issues associated withDeploymentVersion- Specified by:
getJiraIssuesForDeploymentVersionin interfaceDeploymentVersionLinkedJiraIssuesService- Returns:
-
getJiraIssueCountForDeploymentVersion
public int getJiraIssueCountForDeploymentVersion(long deploymentVersionId) Description copied from interface:DeploymentVersionLinkedJiraIssuesServiceGet count of all JIRA issues associated withDeploymentVersion- Specified by:
getJiraIssueCountForDeploymentVersionin interfaceDeploymentVersionLinkedJiraIssuesService- Parameters:
deploymentVersionId- id of the version- Returns:
- number of issues linked with
DeploymentVersion
-
getJiraIssuesForDeploymentVersionsMap
public SortedMap<String,DeploymentVersionLinkedJiraIssue> getJiraIssuesForDeploymentVersionsMap(long deploymentVersionId) Description copied from interface:DeploymentVersionLinkedJiraIssuesServiceGet all JIRA issues associated withDeploymentVersionas mapping between issue key andDeploymentVersionLinkedJiraIssue- Specified by:
getJiraIssuesForDeploymentVersionsMapin interfaceDeploymentVersionLinkedJiraIssuesService- Returns:
-
getJiraIssueKeysForDeploymentVersion
Description copied from interface:DeploymentVersionLinkedJiraIssuesServiceGet keys of all JIRA issues associated with aDeploymentVersion- Specified by:
getJiraIssueKeysForDeploymentVersionin interfaceDeploymentVersionLinkedJiraIssuesService- Returns:
-
getIssuesChangedForDeploymentResult
Description copied from interface:DeploymentVersionLinkedJiraIssuesServiceFinds issue keys for given deployment result Returns empty list if status of result build is unknown or if this and previous status is failed. Return all issues in deployment project if it's first result in known state or it's state is different than previous or it's in different branch then previous If none of the above is fulfilled it returns difference between previous successful deployed release but different then current one.- Specified by:
getIssuesChangedForDeploymentResultin interfaceDeploymentVersionLinkedJiraIssuesService- Returns:
-
getJiraIssueKeysForProject
Description copied from interface:DeploymentVersionLinkedJiraIssuesServiceGet keys of all JIRA issues associated with aDeploymentProject- Specified by:
getJiraIssueKeysForProjectin interfaceDeploymentVersionLinkedJiraIssuesService- Returns:
-
compareVersionsByJiraIssues
public List<DeploymentVersionLinkedJiraIssue> compareVersionsByJiraIssues(long deploymentProjectId, @NotNull @NotNull DeploymentVersion version1, @NotNull @NotNull DeploymentVersion version2) Description copied from interface:DeploymentVersionLinkedJiraIssuesServiceGet 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.- Specified by:
compareVersionsByJiraIssuesin interfaceDeploymentVersionLinkedJiraIssuesServiceversion1- 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 public @NotNull List<InternalLinkedJiraIssue> getJiraIssuesForNewDeploymentVersion(long deploymentProjectId, PlanResultKey planResultKey) Description copied from interface:DeploymentVersionLinkedJiraIssuesServiceFinds the relevant jira issues if a new version would be created from planResultKey. Doesn't save anything to db,- Specified by:
getJiraIssuesForNewDeploymentVersionin interfaceDeploymentVersionLinkedJiraIssuesService- Parameters:
deploymentProjectId- id of the deployment projectplanResultKey- of the build result we want to create version from- Returns:
-
getJiraIssuesForNewDeploymentVersion
@NotNull public @NotNull List<InternalLinkedJiraIssue> getJiraIssuesForNewDeploymentVersion(long deploymentProjectId, PlanResultKey planResultKey, DeploymentVersion previousVersion) Description copied from interface:DeploymentVersionLinkedJiraIssuesServiceSame as above, but gets all issues between a specific version and the planResultKey.- Specified by:
getJiraIssuesForNewDeploymentVersionin interfaceDeploymentVersionLinkedJiraIssuesService- Parameters:
deploymentProjectId- id of the deployment projectplanResultKey- of the build result we want to create version frompreviousVersion- that we want to compare to- Returns:
-