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
-
Method Summary
Modifier and TypeMethodDescriptioncompareVersionsByJiraIssues
(long deploymentProjectId, @NotNull DeploymentVersion version1, @NotNull DeploymentVersion version2) Get JIRA issue links for comparing two versions, i.e.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.int
getJiraIssueCountForDeploymentVersion
(long deploymentVersionId) Get count of all JIRA issues associated withDeploymentVersion
getJiraIssueKeysForDeploymentVersion
(long deploymentVersionId) Get keys of all JIRA issues associated with aDeploymentVersion
getJiraIssueKeysForProject
(long deploymentProjectId) Get keys of all JIRA issues associated with aDeploymentProject
getJiraIssuesForDeploymentVersion
(long deploymentVersionId) DeploymentVersionEventListener Get all JIRA issues associated withDeploymentVersion
getJiraIssuesForDeploymentVersionsMap
(long deploymentVersionId) Get all JIRA issues associated withDeploymentVersion
as 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:DeploymentVersionLinkedJiraIssuesService
DeploymentVersionEventListener Get all JIRA issues associated withDeploymentVersion
- Specified by:
getJiraIssuesForDeploymentVersion
in interfaceDeploymentVersionLinkedJiraIssuesService
- Returns:
-
getJiraIssueCountForDeploymentVersion
public int getJiraIssueCountForDeploymentVersion(long deploymentVersionId) Description copied from interface:DeploymentVersionLinkedJiraIssuesService
Get count of all JIRA issues associated withDeploymentVersion
- Specified by:
getJiraIssueCountForDeploymentVersion
in 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:DeploymentVersionLinkedJiraIssuesService
Get all JIRA issues associated withDeploymentVersion
as mapping between issue key andDeploymentVersionLinkedJiraIssue
- Specified by:
getJiraIssuesForDeploymentVersionsMap
in interfaceDeploymentVersionLinkedJiraIssuesService
- Returns:
-
getJiraIssueKeysForDeploymentVersion
Description copied from interface:DeploymentVersionLinkedJiraIssuesService
Get keys of all JIRA issues associated with aDeploymentVersion
- Specified by:
getJiraIssueKeysForDeploymentVersion
in interfaceDeploymentVersionLinkedJiraIssuesService
- Returns:
-
getIssuesChangedForDeploymentResult
Description copied from interface:DeploymentVersionLinkedJiraIssuesService
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. 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:
getIssuesChangedForDeploymentResult
in interfaceDeploymentVersionLinkedJiraIssuesService
- Returns:
-
getJiraIssueKeysForProject
Description copied from interface:DeploymentVersionLinkedJiraIssuesService
Get keys of all JIRA issues associated with aDeploymentProject
- Specified by:
getJiraIssueKeysForProject
in interfaceDeploymentVersionLinkedJiraIssuesService
- Returns:
-
compareVersionsByJiraIssues
public List<DeploymentVersionLinkedJiraIssue> compareVersionsByJiraIssues(long deploymentProjectId, @NotNull @NotNull DeploymentVersion version1, @NotNull @NotNull DeploymentVersion version2) Description copied from interface:DeploymentVersionLinkedJiraIssuesService
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.- Specified by:
compareVersionsByJiraIssues
in interfaceDeploymentVersionLinkedJiraIssuesService
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 public @NotNull List<InternalLinkedJiraIssue> getJiraIssuesForNewDeploymentVersion(long deploymentProjectId, PlanResultKey planResultKey) Description copied from interface:DeploymentVersionLinkedJiraIssuesService
Finds the relevant jira issues if a new version would be created from planResultKey. Doesn't save anything to db,- Specified by:
getJiraIssuesForNewDeploymentVersion
in 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:DeploymentVersionLinkedJiraIssuesService
Same as above, but gets all issues between a specific version and the planResultKey.- Specified by:
getJiraIssuesForNewDeploymentVersion
in 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:
-