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

0 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

30,295 views 26 12
Join discussion

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