Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
This routine is available starting with Power Scripts™ for Confluence v1.1.0.
Info
titleAvailability
Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

movePage(pageId, newParentPageId)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue

Moves the selected page to a new parent page.

Moves the selected page to a new parent page.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

pageId

...

Number

...

Yes

ID of the page to be moved.

newParentPageId

...

Number

...

Yes

ID of the new parent page.

Return

...

Type

boolean Boolean (true/false)

Print Return true

Examples

Example 1

Print Return true

Code Block
languagejs
boolean success = movePage(11801, 10321);
print("Return " + success);

...

Example 2

Code Block
languagejs
number pageId = getPage("PSCONF", "Page");
number newParentPageId = getPage("PSCONF", "New Parent Page");
movePage(pageId, newParentPageId);

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "

...

page_

...

routines" and space = currentSpace ( )
labels

...

array_routines
We've encountered an issue exporting this macro. Please try exporting this page again later.