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
heading0
columnTypess,s,s,s
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);

Print Return true

Example 2

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

...

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "pspage_conf"routines" and space = currentSpace ( )
labelsjiraarray_comment_routineroutines