use of com.synopsys.integration.jira.common.server.model.IssueSearchResponseModel in project hub-alert by blackducksoftware.
the class JiraServerGlobalTestActionWrapper method canUserGetIssues.
public boolean canUserGetIssues() throws IntegrationException {
IssueSearchService issueSearchService = jiraServerServiceFactory.createIssueSearchService();
IssueSearchResponseModel issueSearchResponseModel = issueSearchService.queryForIssuePage("", 0, 1);
return !issueSearchResponseModel.getIssues().isEmpty();
}
use of com.synopsys.integration.jira.common.server.model.IssueSearchResponseModel in project hub-alert by blackducksoftware.
the class JiraServerGlobalFieldModelTestAction method canUserGetIssues.
@Override
protected boolean canUserGetIssues(FieldUtility fieldUtility) throws IntegrationException {
JiraServerProperties jiraProperties = createJiraProperties(fieldUtility);
JiraServerServiceFactory jiraServerServiceFactory = jiraProperties.createJiraServicesServerFactory(logger, gson);
IssueSearchService issueSearchService = jiraServerServiceFactory.createIssueSearchService();
IssueSearchResponseModel issueSearchResponseModel = issueSearchService.queryForIssuePage("", 0, 1);
return issueSearchResponseModel.getIssues().size() > 0;
}
Aggregations