• 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 macro by name and select it

  3. Configure it as needed

You can also type / on the page to bring up the same list you'd see by selecting from the toolbar. Continue typing the name of the macro to filter the list.

To edit the Recently Used Labels macro:

  1. Select the macro placeholder.

  2. Select the Edit icon to open the configuration panel.

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

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

You can also select the centered , medium-width , and full-width icons to adjust the width of some macros. Select the trashcan iconto remove the macro.


Parameters are options that you can set to control what and how content from the macro appears on the page. 

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}

Still need help?

The Atlassian Community is here for you.