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.
Discover the teamwork and precision behind success on and off the track. See how this high-performing team makes the impossible possible. Be one of the first 100 customers to register for a chance to win 2 tickets to an Atlassian Williams 2026 race.
Register now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.