createPage

Description

Creates an issue based on the provided arguments.

Parameters

Return Type

number

The page ID of the newly created page.

Examples

Example 1

1 2 3 4 5 6 string spaceKey = "PSCONF"; number parentPageId = 11801; string pageTitle = "New Page"; string pageContent = "<p>This page was created by Power Scripts!<p>"; number newPage = createPage(spaceKey, parentPageId, pageTitle, pageContent); %newPage%.labels += "new";

Example 2

1 2 3 number homePage = getPage("PSCONF", "Power Scripts for Confluence Home"); number newPage = createPage(%homePage%.space, %homePage%.id, "New Page", %homePage%.content); %newPage%.labels += "new";

See also