SearchResults results = searchService.search(user, query, PagerFilter.getUnlimitedFilter());
I am on Jira 8 . I am using SearchResults Class.
It was easy with Jira 7. There was a method getIssues().
But now on Jira 8 there is only method getPages() oder getResults(). Both return a List with no further information. A raw List , not with a specific dataType .
So I really do not know how to get the issues now.
I just found out SearchResult is also generic.
Maybe this is possible:
SearchResults<Issue> results = searchService.search(user, query, PagerFilter.getUnlimitedFilter());
But does Jira query not always return Issue Object?
Hi @Albert Cameron you are right, method searchService.search returns SearchResults<Issue>. You can check it in javadoc of this method
And example of the code is:
https://library.adaptavist.com/entity/perform-a-jql-search-in-scriptrunner-for-jira
It is in groovy but it is not so difficult to write the same in Java :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.