Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,sheading0
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

admCloneSpace(sourceSpaceKey, targetSpaceKey, targetSpaceName, targetSpaceDescription, cloneCategories, clonePermissions, cloneLabels, cloneComments, cloneAttachments, cloneMetadata)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Clones space with pages, labels, categories, attachments, permissions and look and feel.

Clones space with pages, labels, categories, attachments, permissions and look and feel.

Parameters

...

applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

...

Parameter name

...

Type

...

Required

...

Description

...

source space key

...

String

...

Yes

...

Space key of the space to be cloned.

...

target space key

...

String

...

Yes

...

Space key of the new space.

...

target space name

...

String

...

Yes

...

Space name of the new space.

...

target space description

...

String

...

Yes

...

Description for the new space.

...

clone categories

...

Boolean

...

Yes

...

Should space categories be cloned, true/false.

...

clone permissions

...

Boolean

...

Yes

...

Should space permissions be cloned, true/false.

...

clone labels

...

Boolean

...

Yes

...

Should page labels be cloned, true/false.

...

clone comments

...

Boolean

...

Yes

...

Should page comments be cloned, true/false.

...

clone attachments

...

Boolean

...

Yes

...

Should page attachments be cloned, true/false.

...

clone metadata

...

Boolean

...

Yes

...

.

Return Type

Boolean (true/false)

...

Code Block
languagejs
string sourceSpaceKey = "TST";
string targetSpaceKey = "NEWTST";
string targetSpaceName = "New Test Space";
string targetSpaceDescription = "This space was cloned from the Test space";
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 also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "admin_routines" and space = currentSpace ( )
labelsarray_routines