Confluence REST API v2 doesn't return inline comment, 404 instead; v1 works - BUG?

I have a public sample page that demonstrates the behavior described in the title. Inline comments are not returned by REST v2, but by REST v1.

Let’s get the inline comments of this page:

https://inera.atlassian.net/wiki/spaces/OISDK/pages/3502244374/2024-01-12+Aktuellt+om+S+ker+digital+kommunikation

Using REST API v1 first - because this works:

https://inera.atlassian.net/wiki/rest/api/content/3502244374/child/comment

Returns (slightly abbreviated):

{
  "results": [
    {
      "id": "3505160502",
      "type": "comment",
      "status": "current",
      "title": "Re: 2024-01-12 Aktuellt om Säker digital kommunikation",
      "macroRenderedOutput": {

      },
      "extensions": {
        "location": "inline",
        "_expandable": {
          "inlineProperties": "",
          "resolution": ""
        }
      }
    }
  ],
  "start": 0,
  "limit": 25,
  "size": 1
}

Now REST API v2:

https://inera.atlassian.net/wiki/api/v2/pages/3502244374/inline-comments

Returns:

{"errors":[{"status":404,"code":"NOT_FOUND","title":"Not Found","detail":null}]}

Also, expanding doesn’t change the result.

This:

https://inera.atlassian.net/wiki/api/v2/pages/3502244374/inline-comments?resolution-status=resolved,open,dangling,reopened&status=current,archived,trashed,deleted,historical,draft

Returns:

{"errors":[{"status":404,"code":"NOT_FOUND","title":"Not Found","detail":null}]}

This page has indeed one resolved inline comment which is the one returned by the v1 REST endpoint:

No footer comments are present on this page.

Note that when calling the REST API v2 endpoint for a page without inline comments, the server response changes from 404 to empty result:

Try this page (no inline comments at time of this writing):

https://inera.atlassian.net/wiki/api/v2/pages/3502113389/inline-comments

This returns an empty result set (as one would expect):

{"results":[],"_links":{"base":"https://inera.atlassian.net/wiki"}}

Overall, this looks like a bug in the v2 inline comments endpoint.

1 Like

Atlassian has said that they are no longer monitoring CDAC for V2 API problems, so you’ll need to file an ECOHELP ticket if you want someone to look at it and file an actual CONFCLOUD bug. (And if you do manage to get a bug created, it would be great if you could post the link here!)

2 Likes

So far I was not able to find the place to create a ticket that doesn’t require some paid-for prerequisites to be met, or an offering in the marketplace. Do you happen to have a link? Otherwise this is out here fyi ^^.

If you file a bug using the usual procedure on support.atlassian.com, you can supply the SEN or entitlement number of an evaluation license, and it will still let you file a ticket.

1 Like

Nope, they don’t want to hear from trial customers and link to the forums.

1 Like