Search in sources :

Example 1 with IssueSearchResponseModel

use of com.synopsys.integration.jira.common.cloud.model.IssueSearchResponseModel in project hub-alert by blackducksoftware.

the class JiraCloudGlobalFieldModelTestAction method canUserGetIssues.

@Override
protected boolean canUserGetIssues(FieldUtility fieldUtility) throws IntegrationException {
    JiraCloudProperties jiraProperties = jiraCloudPropertiesFactory.createJiraProperties(fieldUtility);
    JiraCloudServiceFactory jiraCloudServiceFactory = jiraProperties.createJiraServicesCloudFactory(logger, gson);
    IssueSearchService issueSearchService = jiraCloudServiceFactory.createIssueSearchService();
    IssueSearchResponseModel issueSearchResponseModel = issueSearchService.queryForIssuePage("", 0, 1);
    return issueSearchResponseModel.getIssues().size() > 0;
}
Also used : IssueSearchService(com.synopsys.integration.jira.common.cloud.service.IssueSearchService) JiraCloudServiceFactory(com.synopsys.integration.jira.common.cloud.service.JiraCloudServiceFactory) IssueSearchResponseModel(com.synopsys.integration.jira.common.cloud.model.IssueSearchResponseModel) JiraCloudProperties(com.synopsys.integration.alert.channel.jira.cloud.JiraCloudProperties)

Aggregations

JiraCloudProperties (com.synopsys.integration.alert.channel.jira.cloud.JiraCloudProperties)1 IssueSearchResponseModel (com.synopsys.integration.jira.common.cloud.model.IssueSearchResponseModel)1 IssueSearchService (com.synopsys.integration.jira.common.cloud.service.IssueSearchService)1 JiraCloudServiceFactory (com.synopsys.integration.jira.common.cloud.service.JiraCloudServiceFactory)1