This site has moved to the integrated Appfire documentation and information site for our apps.

From February 2024 this site is no longer updated.

Take a look here! If you have any questions please email support@appfire.com

workflow-reporter macro

Looking for the Comala Document Management report macro? See workflow-report macro and Reporting Guide.

Overview

The {workflow-reporter} macro is used to generate a collection of Pages and News (blog posts) objects to use with the ServiceRocket Reporting for Confluence app version 6.0 or above.

Using the Reporting add-on is an alternative to using the {workflowreport} macro; it allows you to create more advanced and customisable reports using ServiceRocket's reporting framework.

Where to use it?

Optional.

This is an optimised alternative to the content-reporter which provides access to workflow-related information.

The workflow-related information can be accessed through the {report-info} macro by using the Workflow Supplier.

For further documentation, please see: ServiceRocket Reporting documentation

Parameters

Parameter

Required

Default

Notes

space


@self

Which spaces should be included in the report?

  • @self – current space
  • @all – all spaces
  • Or specify a comma-separated list of space keys for a collection of spaces

label



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

  • Leave empty to include all pages and blog posts
  • 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.

filter



A comma-separated list of CQL filters in the form FieldName:Value – the values must be indexed.

state



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

max


100

Maximum number of entries in the report

sort


+modified

The sort order:

  • + for ascending, A→Z
  • - for descending, Z→A

And the sort field:

  • modified – the most recent date on which the content was modified
  • created – the date on which content was created
  • pagestate – the current workflow state of the content
  • statechanged – the date on which the state most recently changed
  • statechangedby – user who most recently changed the state

Example

The Reporting app report below will generate a report similar to the states report of the {workflowreport} macro:

{report-table}
 {workflow-reporter:spaces=@self|state=Published}
 {workflow-reporter}

 {report-column:title=Page}{report-info:content:title|link=true}{report-column}
 {report-column:title=Last Updated By}{report-info:content:modifier>name|link=true}{report-column}
 {report-column:title=Updated}{report-info:content:modification date}{report-column}
 {report-column:title=State}{report-info:workflow:state>name}{report-column}
 {report-column:title=State changed on}{report-info:workflow:state>date}{report-column}
 {report-column:title=State changed by}{report-info:workflow:state>user>name|link=true}{report-column}
{report-table}

All examples

See also

Reporting Guide

Integration Guides:

Workflow Authoring Guide:

Developer Guides: