• Products
  • Documentation
  • Resources

Insert the recently used labels macro

This macro was intentionally excluded from the new editor and will be deprecated from the legacy editor soon.

Use the more functional Related labels or Content by label macros instead.

The Recently Used Labels macro displays a list of the labels that have been most recently added to a page, blog post or attachment. You can define the number of labels to be displayed and the scope (the current space, your personal space or site spaces, also known as 'global' spaces).

Using the Recently Used Labels macro

To add the Recently Used Labels macro:

  1. When editing , select from the toolbar

  2. Find the item to be inserted and select it

  3. Select Insert

You can also type / on the page to bring up the same list you'd see by selecting from the toolbar.

To edit the Recently Used Labels macro:

  1. Select the macro placeholder. The floating toolbar appears.

  2. Select Edit. The right panel opens.

  3. Modify the parameters. Your changes are saved as you go.

  4. Resume editing the page, and the panel closes.


Parameters are options that you can set to control the content or format of the macro output. 

If the parameter name used in Confluence Cloud storage format or wikimarkup is different than the label used when inserting macros using the browser or the slash command, it will be listed below in brackets (example).




Number of Labels to Display


Specifies the total number of labels to display in the list.

Scope for Retrieving Labels


Specifies the scope of labels to be displayed in the list. Valid values include:

  • global — covers all site spaces (non-personal) in the Confluence installation.

  • space — the current space.

  • personal — your own personal space.

List Style


  • list – displays the list of labels horizontally.

  • table – includes additional information such as the page to which the label was added and the user who added it.

Table Title


Adds a title to the top of the list in table style. Titles are only visible when the List Style parameter has been set to table.

Wiki markup example

Wiki markup is useful when you need to add a macro outside the editor, for example as custom content in the sidebar, header or footer of a space.

Macro name: recently-used-labels

Macro body: None.

1 2 3 4 {recently-used-labels:title=My title|scope=space|style=table|count=20}

Additional Help