Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-7643

Make "path" optional for the pull requests comments REST API function

    • Icon: Suggestion Suggestion
    • Resolution: Answered
    • None
    • API - REST
    • None
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      This suggestion is to make the "path" parameter optional for the function http://example.com/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments, since general comments on pull requests aren't anchored to a path, thus you can't get them using this function - currently it's only possible to get comments from files using it.

      If you try not setting the "path", the return is:

      {"errors":[{"context":null,"message":"The path query parameter is required when retrieving comments.","exceptionName":null}]}
      

            [BSERV-7643] Make "path" optional for the pull requests comments REST API function

            No work has yet been logged on this issue.

              Unassigned Unassigned
              grefosco Gustavo Refosco (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: