I'm not so sure about SearchProvider, that sounds.. like not the right kind of manager to use.
Usually you would use SearchService, like so, pretty similar syntax and this should fit to your code:
import com.atlassian.jira.bc.issue.search.SearchService
import com.atlassian.jira.issue.search.SearchResults
SearchService searchService = ComponentAccessor.getComponent(SearchService)
SearchResults<Issue> results = searchService.search(user, query, PagerFilter.getUnlimitedFilter())
results.getResults().each {result ->
// do stuff
}
You can of course replace those with "def", but including the actual classes so you know what to look for in javadocs.
Note: do use just the "query" you got from JqlQueryParser
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.