Recently Used Labels Macro

Add the Recently Used Labels macro to a page to display a list of labels that have recently been applied to a page, blog post or attached file.

This is great for keeping track of when new topics are added to things like:

  • knowledge base articles
  • process and procedure documentation
  • project documentation.

You can confine the search to the current space, or the entire site. 

On this page:

Screenshot: a page using the Recently Used Labels macro to show the list of topics applied to knowledge base articles recently. 

You can also choose to configure this macro to show more detail, including the page titles and information about the user who added the label. 

Add this macro to your page

To add the Recently Used Labels macro to a page:

  1. From the editor toolbar, choose Insert > Other Macros.
  2. Choose Recently Used Labels from the Confluence content category.
  3. Enter any parameters.
  4. Choose Insert

You can then publish your page to see the macro in action. 

Screenshot: configuring the Recently Used Labels macro to show 35 recently applied labels. 

Change the macro parameters

Macro parameters are used to change the behaviour of a macro.

To change the macro parameters:

  1. In the editor, click the macro placeholder and choose Edit.
  2. Update the parameters as required then choose Insert.

Here's a list of the parameters available in this macro. 

Parameter

Default

Description

Number of Labels to Display
(count

10

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

Scope for Retrieving Labels
(scope

global

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
(style

list

  • 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
(title

none

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.

Where the parameter name used in Confluence storage format or wikimarkup is different to the label used in the macro browser, it will be listed below in brackets (example).

Other ways to add this macro

Add this macro as you type

Type followed by the start of the macro name, to see a list of macros. 

Add this macro using wiki markup

This is useful when you want 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.

{recently-used-labels:title=My title|scope=space|style=table|count=20}
Last modified on Aug 19, 2020

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.