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:
https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/activity
Please let me know how it goes and don't hesitate to ask for any further information if needed.
Kind regards,Caroline
It looks like you're new here. Sign in or register to get started.