Comala Document Management Server and Datacenter | How to 'bulk move' all confluence pages from one space to another space in the same Confluence instance.
Background
Confluence Server and Confluence Data Center currently do not have built-in functionality to move all pages from one space to another.
For more details, you can refer to the Jira issue CONFSERVER-38965.
However, there is a method to move all pages from one space to another while preserving the workflow document activity and current Comala Document Management status for each page.
This article demonstrates this method using a scenario in which the source space in Confluence employs a Comala Document Management space workflow associated with a label.
Instructions
We recommend testing this solution in a test environment first to verify that all required data is migrated as expected. A test migration ensures you can identify and address any issues before implementing the solution in a live environment.
Undertake the following steps to bulk move pages from one Confluence space to another without losing the Comala Document Management data for each page.
There are two key process steps:
Recreate and enable the same space workflow in the target space
In the source space:
Navigate to Space Tools > Document Management.
Choose the ellipsis menu on the required workflow Ellipsis (…) > Edit with Markup.
Copy the entire markup.
In the Target Space:
Navigate to Space Tools > Document Management.
Click Add Workflow > Create a Workflow.
In the workflow builder, enter a temporary workflow name.
Choose Apply.
Switch to the markup editor view { }.
Paste the previously copied workflow markup (overwriting the existing workflow markup)
Choose Save and Exit.
Enable the workflow.
Move the complete source space (with all its pages) to the new target space
Create a new page in the source space:
Ensure this new page is outside the hierarchy of the current page tree.
Set this new page as the space home page of the space
The new page will be the home page of the migrated space.
Move the old homepage (from the source space):
Move the old homepage to the target space.
For more details, refer to the following video: