Overview
The document activity macro can be added to a document (page or blog post) to display information for the document activity for the workflow on a page.
The document activity macro information for the lifecycle of the workflow events on the document is shown as a table with the following columns
User
Action
State
Comments
Date
Version
The version includes a link to the document version.
The macro can be configured to display a number of document activity entries.
The document activity macro is only displayed on the page if a workflow is applied.
Adding the macro to a page
Edit the page and type /doc and select the document approval macro option.
Choose Document Activity to add the macro to the draft page.
<add draft page macro screenshot
Configuring the macro
The macro can be configured to display a maximum number of document activity entries for the document.
On the document, the document activity for the current document will be displayed.
If no workflow is currently applied or there is no document activity the following is displayed
“ Document does not have a workflow applied.”
The maximum number of document activity entries can be set for the report. The maximum number to be shown in the macro report is 100.
If there are more entries than the set maximum limit the macro will display
up to the defined limit of entries
together with the following message with a link to the document activity report on the page with the additional entries
Showing most recent entries. There are more records in the Document Activity.”
Use with other macros
The document activity macro is compatible with the Confluence Page Properties macro and the Page Properties Report macro.
On the draft page, add the document activity macro as a table value in the page properties macro.
<page properties example screenshot>
The page properties report macro can then be added to a page to report on the added values.
<page properties example screenshot>
Exporting pages to pdf and Word
The document activity macro table of information is included when exporting to pdf or Word.
<export to pdf example screenshot>
In the pdf and Word export the date is in UTC format.
User avatars are not included in the pdf or Word export.