document-states-report macro

Overview

The document-states-report macro creates custom reports on workflow states, reviews, and tasks.

Where to use it?

One or more document-states-report macros can be used in wiki pages, blog posts, and, in some cases, comments.

The report macro can also be used in any macro that supports wiki content in its Macro body (check relevant macro documentation for details).

From v7.3.0 approval based filters are no longer included in the document-states-report macro. Approval information and filters for the approval name, approval status, and approval assignees are available in the document-approvals-report macro.

Parameters

Parameter

Required

Default

Notes

Ver

Parameter

Required

Default

Notes

Ver

columns



title+, state, changed, updated by, updated

The report columns displayed in the UI on the content can be set to be one or more of the following:



From Comala Document Management 6.13.0 the following columns are available

  • Title (column parameter in macro - title)+

  • State (column parameter in macro - state)

  • Approval (column parameter in macro - approvals)

  • Approval Status (column parameter in macro - approval status)

  • Changed By (column parameter in macro - changed by)

  • Updated By (column parameter in macro - updated by)

  • Updated (column parameter in macro - updated)

+title item is always displayed in the report.

v6.13+

From Comala Document Management 6.16.0 the following additional columns are also available

  • Approved Version (column parameter in macro - last final version)

  • Approved ver. approved by (column parameter in macro - last final version approvers)

  • Approved ver. date (column parameter in macro - last final version date)

  • Created (column parameter in macro - created)

  • Due date (column parameter in macro - due date)

  • Read Confirmation (column parameter in macro - readack status)

  • Space (column parameter in macro - space)

  • Workflow (column parameter in macro - workflow)

6.16.0+

Columns are displayed in the order the items are added in the macro editor.

The following column headings are sortable in the UI of the report (from v6.16.6+)

  • Title

  • Created

  • Due date

  • Read Confirmation

  • State

  • Updated

  • Created by

  • Workflow



content-title



all

Filter report for specific named content.



filter



all

You can provide a comma-separated list of CQL filters – the values must be indexed.

The only workflow CQL searchable fields are those listed in Comala Document Management CQL Rest API page together with the Atlassian Confluence CQL fields

Other Atlassian CQL resources



v6.16.7+

label





Should the report be filtered by content label(s)?

  • leave empty to include all content

  • specify one label name to filter to a specific label

  • list multiple label names, separated by commas, to filter to content with any of those labels

If using a list of labels, you can prefix the list with & (ampersand) to require that content has all the labels.



maxItems



20

The number of results to show per page.



order



descending

What order should results be sorted in?

  • ascendingA→Z

  • descendingZ→A



parent





Should the report be filtered to a specific parent page and the child pages of the specific page?

  • leave empty to include all content in the space

  • specify a page title to include the specified page and its child pages

  • specify @self to specify the current page



sort



title

Defines the value to sort by with the following options

  • Title

  • Updated

  • Created

  • Created by

v7.2.1

sort order

 

ascending

Defines the order of the sorting as either

  • ascending

  • descending

v7.2.1

space



current space

Which space(s) should be included in the report?

  • leave empty to report on the current space

  • Specify one space key to report on a specific space

  • list multiple space keys, separated by commas, to report on multiple spaces

  • specify any to report on all spaces



state



all

Should the report be filtered to specific state(s)?

  • leave empty to report on all states

  • specify one state name to report on that state

  • list multiple state names, separated by commas, to report on specific states



workflow



all

Should the report be filtered to states in a specific workflow(s)?

  • leave empty to report on all states in all workflow

  • specify one workflow name to report on states in that workflow

  • list multiple workflow names, separated by commas, to report on specific states in those workflows



from Comala Document Management v7.3.0., the following filter parameters for approvals are available in the Document Approvals Report macro These filtered are no longer available in the document-states-report macro.

  • approvalName - filter report on the name of an approval

  • approvalsAssignedTo - filter the report to one or more users assigned to an approval

  • approvalStatus - filter the report to the approval status of named approval in approvalName parameter

All examples

See also

Workflow Authoring Guide

Reporting Guide

Developer Guides