hi there,
when i tried to get info of pullrequest using below url, i cannot get reviewer info.
/repositories/team/repository/pullrequests
"
Hi, @Jin Wu! Thank you for reaching out to Atlassian Community!
In order to see the reviewers of a Pull Request, you can run the following request:
/2.0/repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/activity
You can get a list of PRs (including their IDs) from the endpoint you already ran. So for example, in his screenshot, we see the PR ID 4039 (near the top). So you need to then use that ID and run the following to get the reviewers section:
/2.0/repositories/{workspace}/{repo_slug}/pullrequests/4039/activity
You can find more information about this endpoint at the following link:
Please let me know how it goes and don't hesitate to ask for any further information if needed.
Kind regards,
Caroline
Join this webinar on June 25/26th to learn how to build secure CI/CD workflows using Bitbucket Pipelines and get tips from our own engineers on how to speed up builds and operate at scale.
Register todayOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.