Overview
When added to a page, the document state macro displays information on the approval workflow state of the page.
The macro can be configured to display
the approval workflow state
date of the change to the state
The document state macro is only displayed on the page if an approval workflow is applied.
Adding the macro to a page
Edit the page and type /doc to display the document-state macro option.
Choose Document State to add the macro to the draft page.
Select the macro and choose the pencil icon to open the macro editor.
Check the required boxes to configure the macro to display one or more of
the workflow state - Show State
date of the transition to the state - Show Changed Date
Selected macro options are previewed in the macro on the draft page.
Publish the page to view the document state macro displayed in the page subtitle on the content.
Use with other macros
The document state macro is compatible with the Confluence Page Properties macro and the Page Properties Report macro.
On the draft page, add the document state macro as a table value in the page properties macro.
This is displayed on the published page in a table.
The page properties report macro can be added to a page to report the value of the example page property we created - Comala Management App - State details.
Exporting pages to pdf and Word
The document state macro on-page information is included when exporting to pdf or Word.
In the pdf and Word export any date information (if included in the macro configuration) is in UTC format.