Uploaded image for project: 'Migration Platform'
  1. Migration Platform
  2. MIG-1872

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Medium
    • None
    • CCMA - 3.9.9
    • None
    • 1
    • Severity 3 - Minor
    • 1

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              f4a240011bb9 Anatolii Kostin [Atlassian]
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: