The JQL issueFunction in completeInSprint(1,2)
works correctly in the Jira UI and ScriptRunner console. When used via searchService.search(...)
or searchOverrideSecurity(...)
in Java (with an admin user), it returns results only for active or future sprints β not for closed sprints(no result/ empty). Is there a known limitation or alternate way to run ScriptRunner JQL in Java for closed sprints?
Hi,
I think this could be a pagination problem.
How many results do you see in the UI, and how many are you seeing using the searchService?
I usually do the call to the searchService using the following format.
searchService.search(user, query, PagerFilter.unlimitedFilter)
to gather all the issues at the same time.
Thanks, Ivan
1 Like
Hi Ivan,
Thanks for your reply.
From the UI side, it shows 1 result that I created for testing. However, when I use:
searchService.search(user, query, PagerFilter.unlimitedFilter)
it returns no results.
So, I donβt think this is related to pagination β it seems to be a different issue.
Thanks,
Karan
Which user are you using in the searchService call? This also could impact the result obtained.
1 Like