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
4,364,979
Community Members
 
Community Events
168
Community Groups

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

Edited

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

Hi @amarsha.ng

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

 

BR,

Leo

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
TAGS

Atlassian Community Events