path query param is not working for Bitbucket Server REST API for retrieving comments Edited

I tried to get all the comments for a PR and saw I had to put a path param. I suppose its for location of the file?

I left a comment on a file name README.md in root folder for the repo, so I put path=/README.md or path="/README.md" even there is a comment on the file, returned result is zero.

 

Response is 
{
"size": 0,
"limit": 25,
"isLastPage": true,
"values": [],
"start": 0
}

What I did

https://bitbucket.com/rest/api/latest/projects/AIR/repos/my-repo/pull-requests/36/comments?path="/README.md"

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Thursday in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

....sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables ROLLBAR_ACCESS_TOKEN...

177 views 0 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