Modify the page title with an Automation step action
Description
Problem
In Approval Path for Confluence, teams mark the document state in the page title (e.g. "[DRAFT]" during review, "[APPROVED]" after approval) so it shows in the page tree, search and links. Today they change the title by hand, so it often does not match the actual approval state.
Change
-
A new "Modify page title" action in the Automation step for Confluence pages.
-
The admin can add a prefix or a suffix. Running the action again does not add them a second time.
-
The admin can find and replace text in the title, also with a regular expression. An empty replacement removes the matched text, e.g. "[DRAFT]" after approval.
-
The prefix, suffix and replacement text can include approval data (e.g. approval date, page version). The available data is the same as in the copy title template of "Publish page".
-
A title change made by the action does not mark the approval as outdated in Page Versioning.
-
If the new title conflicts with another page in the space or the change fails, the approval history shows an error and the approval moves on to the next step.
Acceptance criteria
-
After the step, the page title has the configured prefix or suffix. After the same step runs again in a later round, the prefix and suffix appear in the title only once.
-
Find and replace changes every match of the text or regular expression, and an empty replacement removes the matches from the title.
-
Approval data used in the prefix, suffix or replacement appears in the title as the values of that approval.
-
The same approval data is available here and in the copy title template of "Publish page".
-
A title change made by the action does not mark the approval as outdated and does not start a new approval.
-
When the new title conflicts with an existing page in the space, the title stays unchanged, the approval history shows an error and the approval moves on.
-
Existing Automation step actions work as before.