Interface DeploymentVersionLinkedJiraIssuesService
- All Known Implementing Classes:
DeploymentVersionLinkedJiraIssuesServiceImpl
public interface DeploymentVersionLinkedJiraIssuesService
Service for managing JIRA issues linked to
DeploymentVersion
-
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.
-
Method Details
-
getJiraIssueKeysForDeploymentVersion
Get keys of all JIRA issues associated with aDeploymentVersion
- Parameters:
deploymentVersionId
-- Returns:
-
getJiraIssueKeysForProject
Get keys of all JIRA issues associated with aDeploymentProject
- Parameters:
deploymentProjectId
-- Returns:
-
getJiraIssuesForDeploymentVersion
DeploymentVersionEventListener Get all JIRA issues associated withDeploymentVersion
- Parameters:
deploymentVersionId
-- Returns:
-
getJiraIssueCountForDeploymentVersion
int getJiraIssueCountForDeploymentVersion(long deploymentVersionId) Get count of all JIRA issues associated withDeploymentVersion
- Parameters:
deploymentVersionId
- id of the version- Returns:
- number of issues linked with
DeploymentVersion
-
getJiraIssuesForDeploymentVersionsMap
SortedMap<String,DeploymentVersionLinkedJiraIssue> getJiraIssuesForDeploymentVersionsMap(long deploymentVersionId) Get all JIRA issues associated withDeploymentVersion
as mapping between issue key andDeploymentVersionLinkedJiraIssue
- Parameters:
deploymentVersionId
-- Returns:
-
compareVersionsByJiraIssues
List<DeploymentVersionLinkedJiraIssue> compareVersionsByJiraIssues(long deploymentProjectId, @NotNull @NotNull DeploymentVersion version1, @NotNull @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 @NotNull 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 projectplanResultKey
- of the build result we want to create version from- Returns:
-
getJiraIssuesForNewDeploymentVersion
@NotNull @NotNull List<InternalLinkedJiraIssue> getJiraIssuesForNewDeploymentVersion(long deploymentProjectId, PlanResultKey planResultKey, DeploymentVersion previousVersion) Same as above, but gets all issues between a specific version and the planResultKey.- Parameters:
deploymentProjectId
- id of the deployment projectplanResultKey
- of the build result we want to create version frompreviousVersion
- that we want to compare to- Returns:
-
getIssuesChangedForDeploymentResult
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.- Parameters:
deploymentResultId
-- Returns:
-