Overview
The "Content by Label" macro, bundled with Confluence, allows you to build simple reports using Confluence search filters – including those added by the Comala Document Management app!
Note: This feature requires Confluence 5.8 or above.
Setting up the report
Add the Content by Label macro to a wiki page in the usual way.
In the sidebar you'll see an option to specify a label, and, under it, an option to "Add filter":
Search the Add filter drop-down for filters containing the word Workflow – these are the filters added by the Comala Document Management app.
In the example above, we've selected the Workflow State filter. That filter automatically provides a list of all states available on your wiki, so all you need to do is choose one.
In the screenshot above (click to zoom), we've chosen to list all pages with the Label macro and the Workflow State New Draft.
Chose Preview to see the results.
Essentially it allows you to define search criteria, just as you would on the main Confluence Search page, and have the results displayed directly in your content. This is perfect for creating documentation dashboards and "to do" lists.
Available Filters
The following workflow-related search fields are available if you are using Confluence 5.9 or above:
Filter Name | CQL Field | Type | Notes | Ver |
---|---|---|---|---|
Has Workflow | awphasworkflow | TEXT | Filter to content which has a workflow applied Use | 5.1 |
Workflow Approval Assignee | approvalassignee | USER | Filter by assigned reviewer See also: Assigning reviewers | 4.12+ |
Workflow Approver | approver | USER | Filter by user who approved content during a review See also: Content reviews | 4.12+ |
Workflow State | state | TEXT | Filter by current workflow State | 4.10+ |
Workflow State Change | statechange | DATE | Filter by date of last workflow state Transition | 4.11+ |
Workflow State Expiry | stateexpiry | DATE | Filter by current workflow state Expiry Date See also: State expiry date | 4.11+ |
Workflow Task Assignee | taskassignee | USER | Filter by workflow Task assignee See also: Assign a task | 5.1 |
Workflow Name | workflowname | TEXT | Filter by workflow name | 6.0 |
Read Confirmation Status | readAckStatus | TEXT | Filter by the read confirmation status. Possible values: pending, acknowledge, overdue | 6.0 |
These fields can be used in Confluence Search, any macros that support CQL and the CQL REST API.
An example of some of the filters in action:
See also
External Links: