Clone a space with pages

This script will clone a template space along with all the pages in the space.

string sourceSpaceKey = "CTR";
string targetSpaceKey = "NCTR";
string targetSpaceName = "New Tutorials & Recipes for Confluence";
string targetSpaceDescription = "Example scripts and tutorials for Power Scripts for Confluence";
boolean cloneCategories = true;
boolean clonePermissions = true;
boolean cloneLabels = true;
boolean cloneComments = true;
boolean cloneAttachments = true;
boolean cloneMetadata = true;
 
return admCloneSpace(sourceSpaceKey, targetSpaceKey, targetSpaceName, targetSpaceDescription, cloneCategories, clonePermissions, cloneLabels, cloneComments, cloneAttachments, cloneMetadata);

See Other Recipes

See More Documentation