I'm currently working on a feature in my Flask application where I need to fetch all sprints for a specific project in Jira. I noticed that the way to achieve this is to get all the boards for the project and then fetch the sprints for each board. However, this approach seems inefficient as it results in multiple requests which could slow down my application.
I found an endpoint '/rest/greenhopper/1.0/sprint/picker' that seems to return all the sprints, but when I tried to use it, I got an 'OAuth 2.0 is not enabled for this method' error.
Is there any official or supported API that allows fetching all sprints for a project in one go? Or could you provide any guidance on how to use the '/rest/greenhopper/1.0/sprint/picker' endpoint correctly? Your assistance would be greatly appreciated.