Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
maxLevel2
minLevel2
absoluteUrltrue
excludeSee also
typeflat
separatorpipe
Excerpt
hiddentrue

Display on a page the Document Approval workflow state information from content across one or more spaces including options to filter to specific states, spaces, and named approval(s)

Overview

The Document States Report macro is used to display lists of content and associated workflow state information.

This workflow information in the reporting columns can include

...

  • date of last state change

  • the user who actioned the last state change to the current state

  • approvals in the state and approval information including reviewers and decisions

One or more filters can be added to the report macro, for example, to limit the display of workflow information to states with one or more named approvals in the state and the current approval status.

Tip

Once added to a page, the report macro

...

dynamically

...

updates the displayed information. It's great for keeping track of content workflow states across multiple spaces.

Permissions

Anyone can see this report. However, Confluence view-only users

...

only see results for content that has reached the Approved (final=true) state, even if there are subsequent draft state edits to that content

Admins can make all results available to everyone by changing the global Workflow Activity and Drafts Visibilitysetting.

Adding the report

To add the report to a page choose the Document States Report macro.

In the page editor

...

  • choose 

...

  • Insert  Image Modified → Other Macros → Reporting → Document States

...

  • Report 

    • or type {Document States ...

...

    •  on the page and select

...

    •  Document States Report

  • choose  Edit  the macro

...

cda_draftpage_adddocstatesreport.pngImage Added

    ...

    • choose report filters and display column settings

    ...

    editdocstates_macroeditor.pngImage Added
    • scroll down the macro editor to add/edit report filter options

      • the report columns display options by default are the comma-separated list title,state,changed,updated by,updated

      • by default, the report displays 20 items per page

    ...

    • choose Save to update the macro on the draft page

    ...

    • choose Update

    ...

    •  to add the report to the page

    Here's how the report looks on your page.

    ...

    Image Added

    Mouse over the report to display the report dropdown menu button options on the page. These allow a user to filter the page display by the workflow State.

    Each report column heading can be used to sort the report display alphabetically/chronologically depending on the chosen column.

    From Comala Document Approval v2.0.5 the report displays exact dates.

    Customizing the report

    Edit the Document States report macro to customize the report by

    • choosing the information to be displayed in each column of the report

    • adding one or more filters

    Customize the displayed columns

    In the macro editor amending the listed columns to title, state, changed, approval status, approvals, updated by, updated, space, changed or changed by displays details of any approvals in each of the current workflow states.

    ...

    Image Added


    If there are multiple approvals in a state, scroll over the approval icon to display the approval name and any users assigned as approvers.

    The title column will always be displayed.

    Filter the report

    In the macro editor select options to filter the report.

    ...

    Info

    Options are to filter by state, space key, approval name, workflow or CQL (see table below).

    For example, add a filter on the Approval name filter using QA Review

    ...

    Image Added

    The filtered report displays only the page(s) with the Comala Document Approval workflow named Review this page approval.

    ...

    Image Added

    The report macro can also filter approvals on approval status and approval assignee.

    Report filters
    Anchor
    docstatesmacrofilters
    docstatesmacrofilters

    The filters are listed alphabetically in the macro editor.

    Setting

    Default

    Notes

    Ver

    Approval assigned to

    blank

    User assigned to the approval.

    Options

    • all (default - field left blank)

    • username -

    ...

    • approvals  assigned to the specified user

    • @self  - approvals assigned  

    ...

    •  to the current user

    Approval name

    blank

    Name of the approval

    Approval status

    blank

    Only applies if an Approval name filter is specified. Filters by approval status from dropdown menu options.

    • all (blank)

    • Approved

    • Pending

    • Rejected

    CQL Filter

    blank

    A comma-separated list of CQL filters - the values must be indexed.

    For CQL field references 

    Info

    ...

    From v1.10.5+  filters can be added using Confluence CQL format and can

    ...

    include OR

    ...

     and comparison operators

    ...

    Prior to v1.10.5 CQL filter must be in the

    ...

    form FieldName:Value

    Label

    blank

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

    • leave empty to include all content

    • add one label name to filter report to content with the specific label

    • add 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. Otherwise it will report pages containing any of the listed labels.

    Number of items to display

    20

    The maximum number of results to show per page.

    Parent page

    blank

    ...

    • blank defaults to the space home (does not include the

    ...

    • home page in the report as this is the

    ...

    • default parent)

    • specify a

    ...

    • title to list that page's children

    • @self applies report using the current page as the parent page

    Info

    The parent page is not included in the report.

    @self from v2.0.5

    Status
    colourGreen
    titleDATA CENTER

    Sort

    Title

    Sort defines the value to sort by with the following options

    • Title

    • Updated

    • Created

    • Created by

    v2.0.5

    Status
    colourGreen
    titleDATA CENTER

    Sort Order

    ascending

    Sort Order defines the order of the sorting as either

    • ascending

    • descending

    v2.0.5

    Status
    colourGreen
    titleDATA CENTER

    Spaces(s)

    @self

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

    • default is @self for current space

    • list

    ...

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

    • use @all to search all spaces

    State

    blank

    Should the report be filtered to a specific state or 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(s)

    blank

    A comma-separated list of workflows to be displayed. This is redundant as there is only one workflow in Comala Document Approval app.

    Reporting columns
    Anchor
    docstatesmacroreportcolumns
    docstatesmacroreportcolumns

    All columns except Page Title can be added or removed from the displayed report. The column display order on the page is defined by the order of entry of the column in the macro editor.

    The default column entry for the column display is 

    •  title,state,changed,updated by,updated

    These can be used to provide parity of report display when choosing to display state approval information.

    Only the following columns

    ...

    are sortable

    ...

     in the UI of the report.

    • Title

    • Created

    • Due date

    • Read Confirmation

    • State

    • Updated

    • Created by

    • Workflow

    The document states macro has two parameters to define the sorting of the report (from v2.0.5

    Status
    colourGreen
    titleDATA CENTER
    )

    • Sort: defines the value to sort by with the following options

      • Title

      • Updated

      • Created

      • Created by

    • Sort Order: defines the order of the sorting as either

      • ascending

      • descending

    Report Column Entry

    Description


    title

    Page title (always displayed)

    1.8.0+

    approvals

    Approval(s) in the current specified state

    • Single approval - shows assigned users

    • Multiple approvals - shows each individual approval.

    Click each approval icon to show the assigned user(s)

    1.8.0+

    approval status

    Displayed as an approval status lozenge

    • Approved

    • Pending

    • Rejected

    If no approval is present in the current state, no approval status is displayed

    1.8.0+

    changed

    Duration since the last state change

    1.8.0+

    changed by

    The user that caused the page to enter the current state. In the case of a content review with multiple approvers, this is the final approver

    1.8.0+

    created

    Duration since page creation

    1.10.1+

    created by

    The user that created the page

    1.10.1+

    space

    The name of the space that the page is in

    1.10.1+

    state

    The current state of the content with state icon

    1.8.0+

    updated

    Duration since last page edit

    1.8.0+

    updated by

    The user that last edited the page

    1.8.0+

    Exporting the page

    The document states report macro is rendered when a page including the macro is exported to PDF, Word, HTML.

    The following columns (when included in the report macro configuration) are supported when exporting the page.

    Report Column Entry

    Export render

    Version

    title

    Page title with full link (including host Confluence instance name)

    2.0.6 +

    approvals

    Not displayed

    approval status

    Not displayed

    approved version

    Version number in format - v1.1.0

    • link to public version of the page (the last version created on transition to the workflow final state)

    2.0.6 +

    approved version approvers

    Comment separated list of usernames that approved the page

    Info

    Approvers are for the approval that actioned the transition to the final state

    2.0.6 +

    approved version date

    Duration since the approved (final state) was approved

    2.0.6 +

    changed

    Date in preferred format of the user

    2.0.6 +

    changed by

    Username

    • user who actioned the last change state change

    Info

    No link included for username

    2.0.6 +

    created

    Date in preferred format of the user

    2.0.6 +

    created by

    Username

    • user who created the page

    Info

    No link included for username

    2.0.6 +

    due date

    Date in preferred format of the user

    2.0.6 +

    readack status

    Status of read confirmation:

    • Pending

    • Completed

    2.0.6 +

    state

    Current state of the content

    Info

    No color or status indicator circle.

    2.0.6 +

    space

    Space name with link

    2.0.6 +

    updated

    Date in preferred format of the user

    2.0.6 +

    updated by

    Username

    • user who last updated the page

    Info

    No link included for username

    2.0.6 +

    workflow

    Applied approval workflow name

    2.0.6 +

    When rendering the exported table for the macro the document states macro filter settings are used to display the rendered report

    • Columns

    • CQL filter

    • Label

    • Number of items to display

    • Parent page

    • Spaces

    • States

    • Workflows

    • Sort

    • Sort order

    If the column choice exceeds 12 columns the rendered table may be displayed with columns transposed as rows to ensure fit on the exported page. The export may also generate additional table(s) in the rendered export when there are 12 entries or more.