The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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.

TAGS
AUG Leaders

Atlassian Community Events