publish-page trigger action
Overview
Use the publish-page trigger action when you need greater flexibility and control over when and where a page is published. It’s ideal for complex workflows and staged content releases.
When the workflow trigger event occurs, the trigger checks that any required conditions are met, and if they are met, the "publish-page"
action publishes a single page in a different space in the same Confluence Cloud site using Comala Publishing for Cloud app.
One or more trigger actions can be set for a named event in the workflow.
"publish-page"
When added to a workflow trigger, publishes a single page on a workflow event to a different space using Comala Publishing for Cloud app.
action (publish-page)
This trigger action is only available when Comala Publishing Cloud is installed, and the current space has been enabled as a source space for publishing to the target space.
For the workflow shown below:
Adding the following trigger publishes the page on the state change to the First Published state.
"triggers":
[
{"event": "on-change-state",
"conditions":
[
{"state":"First Publish"}
],
"actions":
[
{"action": "publish-page"}
]}
]
If adding the JSON trigger using workflow builder, there is no need to include the opening "triggers":
JSON markup notation; it is added automatically by workflow builder.
The publish-page
action macro publishes the content in the target space on the state change event.
The Comala Publishing breadcrumb is updated on the draft page header and on the target space page.
The target space for publishing the page is configured in the Comala Publishing space settings. Publishing can also occur based on the configuration of the Comala Publishing app, such as a space publishing action or a single-page publishing.
Related Pages
Comala Document Management
Comala Publishing Cloud