Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-80332

In V2 Get children of all types is not available

XMLWordPrintable

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      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.

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

                Created:
                Updated:
                Resolved: