How to create or update pages with a run dialog
How to create or update pages with a run dialog
Description
This is a simple example of using a run dialog to affect content. There are a number of techniques that can be used. An alternative to what is described here is to use the Scripting for Confluence - this involves some scripting but is more flexible for some use cases.
Requirements
Steps
- Create a page
- Construct the parameters for the run macro to match your requirements. See the other examples and documentation.
- Configure the Run CLI Actions in Confluence with profile for the local Confluence instance.
- Test
Wiki markup
{run:replace=name:$current_user_name:Name,happy:Yes:Are you happy?:radio::Yes::No|titleRun=Update page} {cli:profile=confluence|hideOutput=true} --action storePage --space experiment --title "mypage - $name" --parent @home --content "This is the page for $name. Am I happy? $happy" {cli} [mypage - $name] page updated. {run}
Result
, multiple selections available,
Related content
createPage
createPage
More like this
How to create a self service create project page
How to create a self service create project page
Read with this
Screen Script
Screen Script
More like this
copy-page trigger action
copy-page trigger action
More like this
How to get page information for all pages
How to get page information for all pages
Read with this
How to create Confluence pages
How to create Confluence pages
Read with this