Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

is there any rest api to list all comments for a particular PR?


I dont know the hosting , My company is using the bitbucket.

I want to test it with postman and if any authentication requires please suggest that also.

1 answer

1 accepted

0 votes
Answer accepted
Leo Community Leader Nov 06, 2019


if you are on server

You can use this API call >>> rest/api/latest/projects/{Project Key}/repos/{RepoSlug}/pull-requests/{PullRequest-ID}/activities

And then extract comments from that result

or if you want to fetch comments for particular file you need to go with Path  parameter

>>> rest/api/latest/projects/{Project Key}/repos/{RepoSlug}/pull-requests/{PullRequest-ID}/commnets?path={file path}


hope this gives you some idea




can i check this from postman?

Leo Community Leader Nov 06, 2019

I guess you can. FYI, you'll have to append your bitbucket base URL before rest api call which I provided

Thanks , Its working

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events