---
title: "Display all labels used in pages within my current space"
canonical: "https://support.appfire.com/space/RFC/477333340/Display%20all%20labels%20used%20in%20pages%20within%20my%20current%20space"
format: markdown
---
> Macro (aura-html)

## Scenario

Generates a table that displays a set of pages from the current space and all the labels used for those pages.

This can be useful for auditing purposes. For example, a support manager wants a report on all knowledge base (KB) pages and their labels. The support manager needs to check if their team members are labelling the KB pages correctly to ensure they are searchable.

This recipe is part of the template *Labels used in pages within my current space*.

## Result

![collections-use-case-b.png](media://a9c13f85-5f54-435b-845b-2ffd68c79d2a)

## Recipe

| Apps | Reporting for Confluence Cloud |
| --- | --- |
| Level | Easy |
| Estimated time | 5 minutes |

## Steps

The template *Labels used in pages within my current space* will generate a report on the labels on the pages in the current space. This is specified by the `space=currentSpace()` section in the CQL query.

If you want to create a report on the labels of the pages in another space, you must change the `space` value to the corresponding space key. 

## 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://c53b18ff-6942-49fa-8dce-bd3803846309)

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.