REST-API access to pull-request comments

I’m investigating the steps required to, for a particular repository in a particular project, with the REST-API:

  • retrieve a list of all PRs, open and closed, for that repo
  • extract comment text for each PR

It seems that comment text is aggregated by “path” via the REST API (which I guess is the “file” in the PR to which the comment(s) get attached?) – is there an easy way to either (a) get all the comments for a PR regardless of their paths (or for “all” paths), or (b) get a list of the paths involved in the PR to then iterate over them and fetch back their comments?

Thanks!

It looks like, as per this response elsewhere in the community (https://community.atlassian.com/t5/Bitbucket-questions/Re-Retrieving-comments-from-Bitbucket-server-via-REST-API/qaq-p/282254/comment-id/9845#M9845) that the best path to this data for the moment is via the “activities” associated with a PR.