Package org.qubership.atp.ram.services
Class JiraIntegrationService
java.lang.Object
org.qubership.atp.ram.services.JiraIntegrationService
-
Constructor Summary
ConstructorsConstructorDescriptionJiraIntegrationService(TestRunRepository repository, TestRunService testRunService, ExecutionRequestRepository executionRequestRepository, CatalogueService catalogueService, EnvironmentsInfoService environmentsInfoService, org.modelmapper.ModelMapper modelMapper, com.fasterxml.jackson.databind.ObjectMapper objectMapper, String catalogueUrl, DtoConvertService dtoConverter) Creates JiraIntegrationService. -
Method Summary
Modifier and TypeMethodDescriptiongetTestRunsForJiraInfo(List<TestRun> testRuns) Get test run info for Jira integration.getTestRunsForJiraInfoByExecutionId(UUID executionRequestId) Get test run info for Jira integration by ids.getTestRunsForJiraInfoByIds(List<UUID> testRunIds) Get test run info for Jira integration by ids.getTestRunsForRefreshFromJira(List<UUID> testRunIds) Get existing test run info for refreshing data from jira.voidsyncWithJira(ExecutionRequest executionRequest) Call auto sync execution request with jira in catalogue.
-
Constructor Details
-
JiraIntegrationService
public JiraIntegrationService(TestRunRepository repository, TestRunService testRunService, ExecutionRequestRepository executionRequestRepository, CatalogueService catalogueService, EnvironmentsInfoService environmentsInfoService, org.modelmapper.ModelMapper modelMapper, com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Value("${catalogue.url}") String catalogueUrl, DtoConvertService dtoConverter) Creates JiraIntegrationService.- Parameters:
repository- Test Run RepositorytestRunService- Test Run ServiceexecutionRequestRepository- execution request servicecatalogueService- - catalog serviceenvironmentsInfoService- - env info servicemodelMapper- - modelMapperobjectMapper- - objectMappercatalogueUrl- - url to atp-catalogue servicedtoConverter- dtoConverter
-
-
Method Details
-
getTestRunsForJiraInfoByExecutionId
Get test run info for Jira integration by ids.- Parameters:
executionRequestId- execution request id- Returns:
- test run info for Jira integration
-
getTestRunsForJiraInfoByIds
Get test run info for Jira integration by ids.- Parameters:
testRunIds- test run ids.- Returns:
- test run info for Jira integration
-
getTestRunsForJiraInfo
Get test run info for Jira integration.- Parameters:
testRuns- - test runs.- Returns:
- test run info for Jira integration
-
getTestRunsForRefreshFromJira
Get existing test run info for refreshing data from jira. Returns test run only if its' jiraTicket is not empty.- Parameters:
testRunIds- - test run's ids.- Returns:
- test run existing info for Jira integration
-
syncWithJira
Call auto sync execution request with jira in catalogue.- Parameters:
executionRequest- - execution request for sync
-