Update comment REST API requires comment body even if the documentation says otherwise

XMLWordPrintable

    • Severity 2 - Major

      Summary

      Cannot successfully call the REST API Update comment without the body even if the documentation says it is not required.

      See Jira Cloud Issue Comment update REST API docs (https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-api-2-issue-issueIdOrKey-comment-id-put) that say:

      body (string)
      The comment. Required on create, optional for update.

      Steps to Reproduce

      1. Update a comment with the following request body
        {
          "visibility": {
            "type": "role",
            "value": "Administrators"
          }
        }

      Expected Results

      Successful comment update

      Actual Results

      HTTP status 400

      {
          "errorMessages": [],
          "errors": {
              "comment": "Comment body can not be empty!"
          }
      }
      

      Notes

      REST API fails for both v2 and v3

            Assignee:
            Krzysztof Kercz
            Reporter:
            Jon Bevan [Adaptavist]
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: