Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

This document explains how to plan your Scaffolding migration.

Note

Confluence Cloud currently does not support nested macros (See CONFCLOUD-68323).

This means integration with other apps by way of nesting will be limited.

Info

This Atlassian documentation lists the Confluence macros that go through changes when converted to the new editor in Confluence Cloud. 

...

On this page

...

:

Table of Contents
minLevel1
maxLevel

...

Prerequisites

You have

...

6
outlinefalse
styledisc
typelist
printabletrue

Prerequisites

Review the following documents before starting the migration:

...

reviewed the feature differences document

...

You have reviewed and understood the following unsupported scenarios in Cloud as compared to Scaffolding for Confluence Server 

Guide

...

Upgrade the Scaffolding app

Update the Scaffolding app to at least version 8.25.0 through the UPM inside the Confluence administration console.

...

  1. Click the global admin (blue star) icon.

  2. Click Manage apps.

...

  1. Search for Scaffolding.

...

  1. Ensure the app is updated

...

  1. to the most recent version.

...

Find all the Scaffolding macros

...

  1. Ensure that the site search indexes are

...

  1. current.

  2. Choose one of the 2 options below to assess data compatibility between the Scaffolding Server and

...

Upon completion, you will know which data will not be compatible with Scaffolding Cloud after migration.

Choose one of the 2 options below

  1. the Cloud:

Option 1: Use the Macro Usage details page

The Macro Usage page will give you the number of Scaffolding macros on your site

...

and

...

the pages that contain

...

them.

...

  1. Navigate to Administration > Macro Usage.

...

Info

Or access the macro usage information via the shortcut <base-url>/admin/pluginusage.action .

  1. look under Scaffolding.

record

  1. Record:

    1. the number of Scaffolding macros

...

    1. on your site.

    2. identify how many

...

    1. cannot be migrated.

Info

In this example, the ones marked will not be migrated to the Cloud.

...

  1. Select the macro links

...

  1. to show you all pages

...

  1. containing those macros.

...

Image Added

Option 2: Use the SQL query below

Use the sample SQL queries below to help you gather all pages and templates that contain unsupported Scaffolding macros.

This example uses PostgreSQL query syntax

...

; please adjust usage according to your database syntax. Also, to avoid performance issues, limit the outcome to a smaller scope if needed (using limit may help)

...

.

...

Relevant page titles SQL

  • This SQL will provide a list of impacted page authors and the relevant page titles that currently contain Scaffolding macros that are unavailable in the Cloud.

Expand
titleQL query to find impacted pages...
Code Block
select s.spacekey, s.spacename, c.title as "Page Title", um.username
from content c, spaces s, user_mapping um left join cwd_user cu on um.username = cu.user_name
where c.spaceid = s.spaceid and c.contenttype = 'PAGE' and c.prevver is null and c.content_status = 'current'
and c.creator = um.user_key
and c.title in
(SELECT c.title
FROM CONTENT c
JOIN BODYCONTENT bc
    ON c.contentid = bc.contentid
JOIN SPACES s
    ON c.spaceid = s.spaceid
WHERE c.prevver IS NULL
    AND c.contenttype IN ('PAGE', 'BLOGPOST')
    AND bc.body LIKE '%ac:name="hidden-data"%'
		or bc.body LIKE '%ac:name="repeating-data"%'
		or bc.body LIKE '%ac:name="get-data"%'
		or bc.body LIKE '%ac:name="excerpt-data"%'
		or bc.body LIKE '%ac:name="eval-data"%'
		or bc.body LIKE '%ac:name="set-data"%'
		or bc.body LIKE '%ac:name="label-options"%'
		or bc.body LIKE '%ac:name="group-data"%')
order by s.spacekey, c.title

Relevant template SQL

...

This SQL will provide a list of impacted page authors and the relevant template titles that currently contain Scaffolding macros that are unavailable in the Cloud.

Expand
titleSQL query to find impacted templates
Code Block
select s.spacekey, s.spacename, p.templatename as "Template Title", um.username
from pagetemplates p 
left join spaces s on p.spaceid = s.spaceid
left join user_mapping um on p.creator = um.user_key
--left join 
where p.prevver is null
--and p.creator = um.user_key
and p.content LIKE '%ac:name="hidden-data"%'
        or p.content LIKE '%ac:name="repeating-data"%'
        or p.content LIKE '%ac:name="get-data"%'
        or p.content LIKE '%ac:name="excerpt-data"%'
        or p.content LIKE '%ac:name="eval-data"%'
        or p.content LIKE '%ac:name="set-data"%'
        or p.content LIKE '%ac:name="label-options"%'
        or p.content LIKE '%ac:name="group-data"%'
order by s.spacekey, p.templatename ;

...

Prepare the Scaffolding data in server

...

Info

...

Know your Scaffolding structure and data in server

...

to anticipate incompatibilities in Cloud after migration

...

. As the Scaffolding server is more versatile than Scaffolding Cloud, it is important that admins understand what's inside their scaffolding structure, and anticipate what is not migratable. 

...

  • Check the main templates that others are using and remove the structures that are incompatible with Cloud. The following documentation can help you with this

...

...

bgColor#DEEBFF

...

Due to CCMA Limitations: Global templates will not be migrated automatically and have to be manually migrated instead.

...

Due to CCMA limitations

...

...

, you can copy all Global Templates manually into Space Templates before the migration, in order to migrate them to Cloud

...

. You may copy the migrated templates back to Global templates after the successful migration.

Detailed step-by-step instructions are available on this page - Global Template is not automatically migrated to Cloud.

...

Create a staging instance, and perform a test migration on sample data

Tip

This is a recommended best practice step.

Test migration with staging instance

Expand
titleBest practices to do a test migration with a Staging instance...

...

  1. Create a Staging environment licensed by a developer license.

...

  1. Create a snapshot of the current Confluence server, and clone it for the staging instance.

Test data by creating sample space

Expand
titleBest practices to create test data by creating a Sample space
  1. Identify a

...

  1. space that contains:

    1. Space templates that are widely used in your organization and use Scaffolding macros.

    2. Pages with Live Templates that are using the Space templates.

  2. Clone the contents of that space to a new space.

  3. Now you are ready to migrate

...

  1. .

  2. Prepare a migration window as highlighted below.

  3. Go through the Test migration as highlighted

...

  1. in https://appfire.atlassian.net/wiki/spaces/SCAFS/pages/edit-v2/477607990#Find-all-the-Scaffolding-macros and https://appfire.atlassian.net/wiki/spaces/SCAFS/pages/edit-v2/477607990#Prepare-the-Scaffolding-data-in-server

Schedule the migration window

To estimate the time you will need for the migration steps, we recommend reviewing all of the steps before executing.

Depending on the size of the data and the complexity of the existing template configuration, it may take a few hours to complete these steps.

Tip

We advise you to schedule a maintenance window in your organization to perform the migration.

Next

...

Steps

Questions?

Contact us via our support portal.