Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

3,919 views 11 5
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you