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

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

Paramanand Dhuri November 2, 2017

/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 votes
Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 3, 2017

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 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

Paramanand Dhuri November 3, 2017

Thanks caterina

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events