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

Add Required field for Pull request comment API

XMLWordPrintable

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

      The Atlassian Developer API documentation needs modification in the REST API for Add pull request comment and should have the "fromHash" as a mandatory field. The POST query will look something like this:

      curl -X POST -H 'content-type: application/json' --user "admin" <Bitbucket-URL>/rest/api/1.0/projects/<project-key>/repos/<repo-slug>/pull-requests/<pullrequestID>/comments -d '{"text": "test comment for pull request number 2", "anchor": {"path": "README.md", "line": 1, "fileType": "TO", "diffType": "COMMIT", "fromHash": "0971bc30ebe509f7c71d35239cd7f62909f97eab", "toHash": "16ac6cd895bcc841256ccd5e05fdd70b66ae5d66"}}'
      

      Not adding this actually breaks the Bitbucket UI. The Pull request Overview page shows the error message:


      This page couldn't be displayed
      Try reloading the page

            Unassigned Unassigned
            04f11a9d4cc8 Apoorva
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: