Document State

Document State

Overview

When added to a Confluence page, the Document State macro displays information about the page’s current workflow state.

You can configure the macro to show one or more of the following:

  • The current workflow state

  • The date when the state was last changed

  • The state’s expiry date (if applicable)

Dates are shown in Confluence UTC format for both the state change date and the expiry date.

Comala Document State macro output showing current state
Document state macro display

When no workflow is applied to the page, the document state macro displays the following message when editing the page and on the published page.

Comala Document State macro rendered on a page
Document state macro - no workflow applied

Add the macro

To add the document state macro,

  1. Open your Confluence page and type /document state to display the document state macro option.

    Comala Document State macro editor configuration
    Add macro
  2. Select Document State to add the macro to the draft page.

  3. Now, click the Edit icon on the macro to open the macro editor.

    Comala Document State macro with styled state display
    Edit macro
  4. To configure the macro, check the boxes for one or more of the following options:

    • Show State – Displays the current workflow state.

    • Show Changed Date – Displays the date the page transitioned to its current state.

    • Show Expiry Date – Displays the state’s expiry date, if one is set.

    The selected options will be previewed in the macro on the draft page.

Comala Document State macro options and output examples
Document state macro - Configuration
  1. Publish the page to view the document state macro displayed in the page subtitle.

    Comala Document State macro inline state label
    Display macro

Use the document state macro with other Confluence macros

The document state macro is compatible with the Confluence Page Properties macro and the Page Properties Report macro.

To use the macro,

  1. Open a draft page and add the document state macro as a table value in the page properties macro.

Comala Document State macro page properties editor
Page properties
  1. The macro on the published page is rendered in a table.

Comala page properties macro with Document State cell value on a page
Publish macro
  1. 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.

Comala page properties report macro with Document State values
Page properties report macro

Here’s a demo video that shows how to use the document state macro.

Exporting pages to PDF and Word

The Document State macro on-page information will be included when exporting the page to PDF or Word formats.

Comala Document State macro rendered output on a published page
Document State Macro on-page information

Page status (migration compatibility) macro

The page status macro displays the current workflow state.

The macro is added to a document migrated to the cloud, where the source server content includes the Comala Document Management for Server page status macro.

The page status macro is unavailable in the macro browser in a cloud site.

We recommend replacing the page status macro with the document state macro in your cloud content.

Related topics