Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Modified contents as per style guide and changed to new editor

This article contains information about the process and checks to be performed before migrating the HTML macro  macro content from server to cloud. Due to restrictions in Confluence cloud, the HTML macro name was changed to HTML-bobswift, and Migration to Confluence Cloud  in HTML for Confluence Configuration allows you to initiate a process that automatically updates the macro name to prepare your content for migration. Once  Once this process is completed, administrators can then run the Confluence Cloud Migration Assistant to migrate all your content to Confluence cloud.

Table of Contents
minLevel2
maxLevel6
outlinefalse
styledefault
typelist
printabletrue
Info

With the introduction of the HTML macro name update process, the macro name is now updated from HTML to HTML-bobswift for all comments, pages and/or templates.

This article contains the relevant information required to make a seamless transition

...

of HTML content from server to cloud.

...

Instructions

The instructions are divided into two parts: understand how many comments, pages and/or templates need updates, and run the actual update process. The first part merely allows administrators to keep a check on any errors or mismatches in the number of updates made in the second part.

See how many comments, pages and/or templates in your instance require the HTML macro name update

  1. Select Image Modified > Administration > Macro usage, or search for Macro usage.

  2. Scroll down to Bob Swift Atlassian Apps - HTML and see the number of pages mentioned for the html entry.

This is the number of comments, pages and/or templates that require the HTML macro name change.

Before migration:Image Removed

...

After migration:Image Removed

...

title
Tip

How to confirm if all pages and/or templates are updated?

After this update process is completed, you can revisit the Macro usage page to verify that all the required comments, pages and/or templates that use the HTML macro name are updated. This may take a few seconds depending on the total number of comments, pages and templates that were affected due to the update process.

Update the macro name from HTML to HTML-bobswift on all relevant comments, pages and templates in your instance

...

  1. Select Image Modified

...

  1.  > Manage apps.

  2. Either search for HTML for Confluence or scroll to Bob Swift Configuration, and click HTML to view app configuration. This opens the HTML for Confluence Configuration page.

Tip

...

Try this for older Confluence versions!

Navigate to CONFLUENCE ADMINISTRATION

...

> Settings > ATLASSIAN MARKETPLACE HTML > Profiles.

...

  1. Select Migrate to Confluence CloudThis tab displays information about the macro name update process.

...

  1. Image shows the Migrate to Confluence Cloud tab of the configuration page.Image Added
  2. Click Macro upgrade status to know more about the HTML macro usage in your instance. Until the previous release, these statistics were shown directly before the next step. 

...


  1. Image shows the statistics of the last update done.Image Added
  2. Click Update pages to start the update process. 

    Note
    • Leaving this page does not disrupt the update process as it runs in the background.

    • This process can be run as needed to migrate macro name in the comments, pages and templates.

    • Every page or template that is processed shows up as an update in Page history.

...

  1. Image shows the status of the pages after the upgrade completion.Image Added
  2. After the update process is completed, the macro usage information on the page is updated and these updates can be verified through the Macro usage page as mentioned in the previous section. 

Info

Administrators must still run the Confluence Cloud Migration Assistant to complete the migration process from server to cloud. This is because the update process does not actually migrate the HTML content, but simply updates the macro name across all your comments, pages and templates in server/Data Center to match the macro name in cloud.

Troubleshoot issue

There is a known issue where the pre-migration process stalls when migrating huge loads. If an issue occurs with the migration tool, you can update the database directly as a workaround. Try executing the following queries:

Code Block
languagesql
-- This is to pull all the records with given macro it could be html or html-bobswift

SELECT  distinct s.spaceid,s.spacekey 
FROM CONTENT c
JOIN BODYCONTENT bc
	ON c.contentid = bc.contentid
JOIN SPACES s
	ON c.spaceid = s.spaceid
WHERE 
	c.contenttype IN ('PAGE', 'BLOGPOST', 'COMMENT')
	AND bc.body LIKE '%ac:name="html"%';



-- Update html with html-bobswift 

UPDATE bodycontent
SET body = replace(body,'ac:name="html"','ac:name="html-bobswift"') 
WHERE bodycontentid in (
  SELECT bc.bodycontentid
  FROM CONTENT c
  JOIN BODYCONTENT bc
      ON c.contentid = bc.contentid
  WHERE c.contenttype IN ('PAGE', 'BLOGPOST', 'COMMENT')
    AND bc.body LIKE '%ac:name="html"%'
)
;

...