Availability
This routine is available starting with Power Scripts™ for Confluence v1.1.0.
Syntax
movePage(pageId, newParentPageId)
Description
Moves the selected page to a new parent page.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
| number | yes | ID of the page to be moved. |
newParentPageId | number | yes | ID of the new parent page. |
Return type
boolean (true/false)
Examples
Example 1
boolean success = movePage(11801, 10321); print("Return " + success);
Print Return true
Example 2
number pageId = getPage("PSCONF", "Page"); number newParentPageId = getPage("PSCONF", "New Parent Page"); movePage(pageId, newParentPageId);
See also