Info |
---|
|
This routine is available starting with Power Scripts™ for Confluence v1.1.0. Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | movePage(pageId, newParentPageId) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Moves the selected page to a new parent page. |
Moves the selected page to a new parent page.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
pageId | |
...
...
Yes | ID of the page to be moved. | newParentPageId |
|
...
...
Yes | ID of the new parent page. |
|
Return
...
Type
boolean Boolean (true/false)
Print Return true
Examples
Example 1
Print Return true
Code Block |
---|
|
boolean success = movePage(11801, 10321);
print("Return " + success); |
Print Return true
Example 2
Code Block |
---|
|
number pageId = getPage("PSCONF", "Page");
number newParentPageId = getPage("PSCONF", "New Parent Page");
movePage(pageId, newParentPageId); |
...
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "pspage_conf"routines" and space = currentSpace ( ) |
---|
labels | jiraarray_comment_routineroutines |
---|
|