what shoud i do?
Can anyone post the correct code for me,thanks very much
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.SearchServiceimport com.atlassian.jira.issue.search.SearchResultsSearchService 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
It looks like you're new here. Sign in or register to get started.