Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get all Pull requests, reviewers, reviewers and who approved

GrDevTech
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 27, 2024

I would like to export/get all from repo or project the pull request information like it:

"project":"projectName"

"pullrequests": [

 

{

"pull-request-id": "fiwjf982f3jf",

"owner":"user3",

"reviewers":["user1","user2"],

"users-approvals":["user1"],

"isMerged": true

}

 

]

1 answer

1 accepted

1 vote
Answer accepted
Aron Gombas _Midori_
Community Champion
July 4, 2024

This is the primary REST API end-point you will need: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-get

If it doesn't supply all the information you request, check out other REST API end-point as you may need to make multiple calls.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events