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

Custom Content endpoints in V2 should return list of all contributors across all versions in a single call

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

      Currently, the V1 endpoint wiki/rest/api/content/{contentId}?expand=history.contributors.publishers.users exposes a list of users who contributed in the content.

      With the V2 Get Custom Content by ID endpoint it seems that we no longer have that functionality.

      Steps to Reproduce

      1. N/A

      Expected Results

      The V2 Custom Content endpoints return a list of accountIDs that contributed to that content.

      Actual Results

      The endpoint doesn't expose the accountIDs that contributed to that content.

      Workaround

      Leverage the Get custom content by id and add the parameter include-versions to your call. This will include the following information for each of the versions of the content:

      {
        "number": 100,
        "message": "",
        "minorEdit": false,
        "authorId": <<account_id>>,
        "createdAt": "2024-03-26T17:45:24.812Z",
        "page": {
          "id": <<id>>,
          "title": <<title>>,
          "body": {
            {...}
          }
        }
      } 

      Then, create a logic to filter out the distinct authorID for each versions of the custom content, and that should give you a list of all the contributors.

              Unassigned Unassigned
              6b8f2fe36dd5 Gabriel Dias (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: