can i get the response of all comments in pull request using rest API without specifying the Filters

/REST/API/1.0/PROJECTS/{PROJECTKEY}/REPOS/{REPOSITORYSLUG}/PULL-REQUESTS/{PULLREQUESTID}/COMMENTS?ANCHORSTATE&DIFFTYPE&FROMHASH&PATH&TOHASH

 

How could i get response without specifying the filter query

1 answer

This widget could not be displayed.

Hi Paramanand,

The only mandatory parameter in the rest end point you shared is the path one. By adding it, only the comments on the file specified through the path will be returned.

 

@Felix Haehnel replied to a similar question in this thread and suggested to use the activities end point instead:

Activity items include comments, approvals, rescopes (i.e. adding and removing of commits), merges and more.

Because this returns more data - not just the comments - you'll have to filter out anything that is not a comment, but it's going to be easier to do than grabbing comments individually for every file. 

 

Cheers,

Caterina

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,619 views 9 11
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you