Incompatible types: java.lang.Object cannot be converted to com.atlassian.jira.issue.Issue

I converted this method to getResults because it gave an error in the getIssue method in Jira 8. However, this time it gives the error
incompatible types: java.lang.Object cannot be converted to com.atlassian.jira.issue.Issue.
How can I solve it?

Hey,

it’s hard to tell without knowing how the code looks like, that is throwing the error.

I can give you and example how it works for us:

SearchResults<Issue> results = searchService.search(
				user,
				query,
				filter
);

List<Issue> issues = results.getResults();

Best regards,

Marc