In V2 Get children of all types is not available

XMLWordPrintable

      Issue Summary

      Folders, databases, whiteboards, and embeds are not visible in the V2 REST API endpoints when using the /content/{id}/children endpoint. While there are basic APIs available for all content types, the pages/{id}/children endpoint only retrieves content categorized as pages. Additionally, there are currently no API endpoints available for the new content types to access their children.

      Steps to Reproduce

      Currently, we can only make calls to Get child pages

      Expected Results

      The Confluence V2 REST API should provide these endpoints, similar to the already existing /pages/{id}/children endpoint:

      • /databases/{id}/children
      • /embeds/{id}/children
      • /whiteboards/{id}/children
      • /folders/{id}/children

      All of these endpoints (including /pages/{id}/children) should return all kind of content types not just the same one. The response should include the type of the child.

      An example response:

       

      {
        "results": [
          {
            "id": "<string>",
            ...
            "title": "<string>",
            "type": "<string>",
            ...
            "childPosition": 57
          }
        ],
        "_links": {
          "next": "<string>",
          "base": "<string>"
        }
      }

       

      The childPosition field is crucial for copying content trees and should also be included.

      Actual Results

      We currently don't provide these endpoints.

      Workaround

      At this time, the only workaround is the V1 “Get Content Descendants or “Get Content Descendants by Type” endpoint. However, we need to introduce the same functionality in V2.

            Assignee:
            Neha Kalekar
            Reporter:
            Magdalena Śliwińska (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: