Confluence cloud comment rest api not returning parentCommentId

I am trying to get the parent comment (the comment a comment I have the id for was replying to) through the “Get footer comment by id” Rest API but when I get the comment I have an id for the commentParentId is not on the response despite the comment definitely being a reply. Am I doing something wrong or is this a bug in the API?
URL: https://…/wiki/api/v2/footer-comments/34078736?body-format=storage&include-properties=true
Response:

{
  "id": "34078736",
  "status": "current",
  "title": "Re: Page with Comment",
  "pageId": "29655041",
  "version": {
    "number": 5,
    "message": "",
    "minorEdit": false,
    "authorId": "...",
    "createdAt": "2024-06-12T02:26:41.880Z"
  },
  "body": {
    "storage": {
      "value": "\u003Cp\u003EReply to comment\u003C/p\u003E",
      "representation": "storage"
    }
  },
  "properties": {
    "results": [
      {
        "value": "v2",
        "key": "editor",
        "id": "34078741",
        "version": {
          "number": 1,
          "message": "",
          "minorEdit": false,
          "authorId": "...",
          "createdAt": "2024-06-06T23:26:31.876Z"
        }
      }
    ],
    "meta": {
      "hasMore": false
    },
    "_links": {
      "self": "/api/v2/footer-comments/34078736/properties"
    }
  },
  "_links": {
    "webui": "/spaces/~626e506f106b60006f5661a5/pages/29655041/Page+with+Comment?focusedCommentId=34078736",
    "base": "https://.../wiki"
  }
}
1 Like

Seems to be a bug.

Bug appears still to exist? For inline comments.

Yep, it definitely looks like a bug. The Get footer comment by id endpoint isn’t returning parentId for child comments.

@karlbennett1 Please add the label rest-api-v2 to the original question to allow it to go in with the other information being collected about problems with the new V2 API.

Also, the Get footer comments for page / blogpost endpoints are a bit useless, as they only return all the top-level parent comments, so you have to use the Get children footer comment endpoint to find out if they even have children, then do the same down through the levels. That seems counter-intuitive, since the Get footer comments endpoint will return all parents and all children (with their parentId) all at once.

1 Like

I’m also experiencing this bug with footer comments. Now going to use v1 for this. I’m “misusing” the search endpoint as that one isn’t yet deprecated. Is there a bug report for this?