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

'Create from template' macros don't point to correct template after migration with CCMA

XMLWordPrintable

      Issue Summary

      When migrating Confluence spaces via CCMA or Space export/import the 'Create from template' macro don't work and display the follow message when clicked on:

      The template selected is not available anymore.

      This is reproducible on Data Center: Yes

      Steps to Reproduce

      1. Create local page template in space
      2. Create new page and add 'Create from template' macro, point it to page template from previous step
      3. Migrate space from Server/DC to Cloud via CCMA or via manual space export/import

      Expected Results

      'Create from template' macro button works on destination and a new page is created with the desired template

      Actual Results

      Clicking the 'Create from template' macro button causes the following message to show:

      The template selected is not available anymore.

      If you edit the macro it'll show pointing to the first template in the list instead of the desired template.

      Page source points to an old Server templateid:

      <ac:structured-macro ac:name="create-from-template" ac:schema-version="1" ac:macro-id="aaaa-bbbbb-cccccc-dddddd">
      <ac:parameter ac:name="templateName">123456789</ac:parameter>
      <ac:parameter ac:name="templateId">123456789</ac:parameter>
      <ac:parameter ac:name="title">Sample title</ac:parameter>
      <ac:parameter ac:name="buttonLabel">Add template page</ac:parameter>
      </ac:structured-macro>
      

      When the actual templateid in Cloud space is different:

      https://<cloudsite>.atlassian.net/wiki/templates?space=SPACEKEY&template=987654321
      

      Workaround

      Edit the macro on the page and select the desired page template that should be used and publish the change.

              d4271ce9c03f Vinayak Shamnani
              c5522313772a Julian (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: