I would like to execute an existing filter by its ID and iterate throught the results, using script runner (groovy).
Is there any example or code snippet on how to do it?
Thanks in advance,
def ctx = new JiraServiceContextImpl(authenticationContext.getUser()); def sr = searchRequestService.getFilter(ctx, results = def searchProvider.search(sr.getQuery(), authenticationContext.getUser(), PagerFilter.getUnlimitedFilter()) def issues = results.getIssues(); issues.each {issue-> /*DocumentIssueImpl*/ ... }
I just copied and pasted from different classes, but something like the above.
Hi Jamie,
How do I get filter ID from this method? sr.getQuery(123456)?
Thanks
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.