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;
}
Aggregations