Trying to get jira issue through jql.
So I want to receive it by SearchResults and return it to getIssues(), but there is an error, is there any other way?
My code :
SearchService.ParseResult parseQuery = this.searchService.parseQuery(applicationUser, jql);
PagerFilter pagerFilter = PagerFilter.getUnlimitedFilter();
if (index >= 0 && max > 0) {
pagerFilter = PagerFilter.newPageAlignedFilter(index, max);
}
SearchResults searchResults = this.searchService.search(applicationUser, parseQuery.getQuery(), pagerFilter);
return searchResults.getIssues();
P.S. Atlassian SDK Version 8.0.16 supports Jira Version 8.2.1, but the getIssues() method is assumed to have disappeared since Jira Version 8.3.1.
It didn't work properly because of my maven error.
I'm sorry.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use SearchResults#getResults() method instead.
See https://docs.atlassian.com/software/jira/docs/api/8.0.1/com/atlassian/jira/issue/search/SearchResults.html#getResults--
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.