You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
What is the best way of listing ALL open Pull Requests using the REST v2.0 API?
It seems that you can only do this by iterating through users/projects/repos rather than a single operation to return a list across the whole account.
This looks like it was possible using the old v1.0 API, but this has long since been deprecated.
It is also possible via the UI dashboard - indeed that is this page https://bitbucket.org/dashboard/pullrequests?section=all
Our use case is to process this list and then forward reminders on to users in our Org that they have either a PR open that has been approved and need merging, or a PR that needs reviewing.
This seems like an omission in the API?
Let me step in, I'm Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you!
I'd like to inform you that the functionality you're looking for is unfortunately not available yet. We have a feature request for this:
Our development team will give a first-hand update on that ticket if there's any progress made so I would suggest keeping a watch and vote for it.
Do note however that there's no ETA on enhancement request, and all enhancements are implemented with this policy in mind: Implementation of New Features Policy
Atlassian Bitbucket Cloud Support
Hi @Dave Lewthwaite ,
there's a specific REST API in order to retrieve all pull request for a user https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-pullrequests-selected-user-get
Hope this helps,