Hi every one,
this code good :
--------------------------------------------------------
ComponentManager cm = ComponentManager.getInstance();
User user = cm.getJiraAuthenticationContext().getLoggedInUser();
SearchRequestService srs=cm.getSearchRequestService();
Collection<SearchRequest> filters=srs.getFavouriteFilters(user);
if (!filters.isEmpty()){
for(SearchRequest f:filters){
String filterName=f.getName();
log.info("Filter Name "+filterName);
}
}
else log.info("Filters vide");
-----------------------------------------------------------
as far as now i can retreive all favourite filters, but i want retreive all issues belong to each filter
how can i modify this code to retreive all issues bolong to each filter
thanks
String filter= "filter= \"" + filterName + "\""; SearchService searchService = ComponentManager.getInstance().getSearchService(); ParseResult parseResult = searchService.parseQuery(authenticationContext.getUser(), filter); SearchResults results=searchService.search(user,parseResult.getQuery(),PagerFilter.getUnlimitedFilter()); List<Issue> issues = results.getIssues();
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.