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

Update links when copying single pages to a new space

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Page - Copy
    • None
    • 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.

    Description

      When using the Confluence API to copy a set of pages using the if the[ copy page hierarchy request|https://developer.atlassian.com/cloud/confluence/rest/api-group-content---children-and-descendants/#api-wiki-rest-api-content-id-pagehierarchy-copy-post] if the pages contain hyperlinks to each other then the pages created from the copy will be updated to point to the other copied pages.

      We would like this functionality to be extended to the copy single page request so that if pages which link to each other are copied from the same hierarchy at different times the links within them are updated to point to the other copied pages rather than the originals they were copied from.

       

      Steps to reproduce:

      Create two pages "parent page" and "child page" 

      Create a hyper link in "child page" that points to "parent page"

      Copy "parent page" to another space with:

      curl -H "Authorization: Basic <AUTH_KEY>" -X POST -H "Content-Type: application/json" -d'{"destination":{"type":"space","value":<SPACE_ID>}}' https://<ATLASSIAN_INSTANCE>/wiki/rest/api/content/<parent page ID>/copy 

      Copy "child page" with:

      curl -H "Authorization: Basic <AUTH_KEY>" -X POST -H "Content-Type: application/json" -d'{"destination":{"type":"parent_page","value":<parent page copy ID>}}' https://<ATLASSIAN_INSTANCE>/wiki/rest/api/content/<child page ID>/copy 

      Current result: the link on "child page copy" will point to the original parent page

      Ideal result: the link on "child page copy" will point to the new copy of the parent page

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              d86de040f77b robbie.thandi
              Votes:
              11 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: