---
title: "List all Comala Document Management workflow statuses"
canonical: "https://support.appfire.com/space/RFC/477333701/List%20all%20Comala%20Document%20Management%20workflow%20statuses"
format: markdown
---
> Macro (aura-html)

## Scenario

This recipe creates a report that compiles and displays the [Appfire Comala Document Management ](https://marketplace.atlassian.com/apps/142/comala-document-management?hosting=cloud&tab=overview)applied workflow status for each page from a space. This is rendered in a table on a page.

It includes:

- pages from the space
- the workflow status for each page
- an approver's Atlassian user ID

The scenario uses an applied workflow with the following workflow states

- Review
- Rejected
- Approved

> 📝 The Comala Document Management Cloud app includes the Basic Approval Workflow with these three workflow states

You can copy and paste this code into the target Confluence page:

```
{
  "cql": "cw_state = 'Review' or cw_state = 'Approved' or cw_state = 'Rejected'",
  "tab": 0,
  "expansions": "content.metadata,content.metadata.properties,content.metadata.properties.cwc_page_admin,content.metadata.properties.cw_status",
  "filters": [],
  "reportInfos": [
    {
      "id": "9687f0ca-7778-4dc0-8733-828cc01520f5",
      "type": "link",
      "title": "Page",
      "value": "content.id",
      "attr": {
        "link": "url",
        "placeholder": "content.title"
      },
      "template": ""
    },
    {
      "id": "ff65bba3-440a-49a3-94a3-7a0e28bda5f1",
      "type": "basic",
      "title": "Current State",
      "value": "content.id",
      "attr": {
        "value": "content.metadata.properties.cw-status.value.state.name"
      },
      "template": ""
    },
    {
      "id": "25c82240-624f-403f-a705-4e9db02a65e1",
      "type": "basic",
      "title": "Approver Atlassian IDs",
      "value": "content.id",
      "attr": {
        "value": "content.metadata.properties.cw-status.value.state.approvers"
      },
      "template": ""
    }
  ]
}
```

## Result

![image](media://7b09ab92-fb34-42b9-af2c-87b3b3ed435b)

## Recipe

| Apps | Reporting for Confluence Cloud, Comala Document Management Cloud |
| --- | --- |
| Level | Easy |
| Estimated time | 5 minutes |

## Notes

This recipe is part of the Reporting built-in templates. You can load it into your page by [using the templates feature](https://appfire.atlassian.net/wiki/spaces/RFC/pages/477333100).

![reporting_templates.png](media://dcfd5d49-f39e-4f8f-9c6a-0a9e2912985b)

The report is limited to 200 results by default. If you want to view more results, you can enable **Get all results** below the search box.

## Caveat

The approver's name cannot be returned as a value.