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
Next: Root
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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Trying to fetch all the PRs merged to develop branch using bitbucket api. But it is fetching all the PR of other branches also.
Want to fetch PRs of particular branch say "develop" or "release"
https://api.bitbucket.org/2.0/repositories/<workspace-id>/<repo>/pullrequests/?at=develop
Tried with
https://api.bitbucket.org/2.0/repositories/workspace-id/repo/pullrequests/?
Hi @Abbas Mohammed and welcome to the community!
You can try with a query as follows:
https://api.bitbucket.org/2.0/repositories/workspace-id/repo/pullrequests?q=(destination.branch.name="develop")
Certain characters in the query may need URL encoding, and with URL encoding it will look as follows:
https://api.bitbucket.org/2.0/repositories/workspace-id/repo/pullrequests?q=%28destination.branch.name%3D%22develop%22%29
Does this work for you?
Just a heads up, I removed the workspace id and repo name from your post to protect your privacy.
Kind regards,
Theodora
Thanks @Theodora Boudale it is working as expected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are very welcome, please feel free to reach out if you ever need anything else!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.