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
From setup to deployment—this learning path shows you how to build your first app using Forge. Learn the essentials, streamline workflows, and bring custom solutions to life across Jira, Confluence, and more.
Start Learning
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.