Provide REST API to page owner and page tree owner for a page

Have more questions? Submit a request

4 Comments

  • 0
    Avatar
    Katarina Larsson

    We would like to be able retrieve the page owner/page tree owner for other functions, such as displaying the user in a page and creating scripted macros.

  • 0
    Avatar
    Vivek Ukidve

    Need capability to add Page Owner/Page Tree owner through API. This is one of the crtical blockers for us in operationalizing this feature as many engineers manage pages through API

  • 0
    Avatar
    Aron Gombas

    Hey,

    Here is something that may perfectly solve your problem until there is a full-blown API for this. Currently, because of historical reasons, the app stores the owner of a page or page tree in the form of a standard Confluence label. The label follows a simple name convention as explained here.

    As there is an end-point in the standard Confluence REST API to manage labels of a content, you can use that to add/remove the labels that represent the owners! It will just work.

  • 0
    Avatar
    Aron Gombas

    UPDATE: We have released the Better Content Archiving app's cloud version just a few weeks ago. It addresses many points criticized in the Data Center version, including also this one.

    (Our plan is that, if there is interest, we will back-port the most valuable changes from the Cloud version to the Data Center one.)

    In the cloud version, the owner(s) and the tree owner(s) are stored in content properties that can be queried, updated, deleted using the  corresponding Confluence REST API end-point!

    For example, these two owners shown in the UI:

    Are represented like this by the content property JSON document:

    Owners are stored by their user IDs. We also store the ID of the user who set the owners and the timestamp when.

    It is perfectly possible to set them with a POST type REST API call!

    🔥 Try this in action now!

Please sign in to leave a comment.