The Recently Updated macro displays a list of the most recently changed content within Confluence.
The Recently Updated Dashboard macro is similar to this macro, but is intended for display on the Confluence dashboard.
On this page:
Usage with the Macro Browser
To insert the recently updated macro into a page using the Macro Browser,
- Open the Confluence page or blog post that you want to edit, then click the 'Edit' button.
- Click the Macro Browser icon on the toolbar. The macro browser window will open.
- Scroll through the list of macros to find the one you want. Alternatively, start typing the macro name into the search box at the top right of the macro browser. Macros with a matching name will appear in the main pane.
- Click the desired macro.
- Set the macro parameters to your requirements. If desired, you can preview these changes by clicking 'Refresh'.
- Click 'Insert' to add the macro onto the page.
You can also insert macros via autocomplete. For more information, see Using Autocomplete in the Rich Text Editor.
Once you've found the recently updated macro and have added the required parameter values, click 'insert' to add it to your page.
Usage with the Wiki Markup Editor
{recently-updated}
Working Example of Usage
Below is a working example of the 'Recently Updated' macro which by default, lists 15 results.
What you need to type |
What you will get |
---|---|
{recently-updated} |
Recently Updated |
Parameters
Parameters are options that you can include in Confluence macros to control the content or format of the macro output. The table below lists relevant parameters for this macro.
Parameter names are different in the macro browser and in wiki markup. Below we show the macro browser parameter names in bold text, and the equivalent wiki markup parameters in (bracketed
) text. If we do not show any parameter name for the wiki markup, then you should leave out the parameter name and simply include the parameter value as the first parameter, immediately after the colon (:
).
Parameter |
Required? |
Default |
Description |
---|---|---|---|
Author(s) by username |
no |
None specified i.e. display all content |
Filter the results by author. The macro will display only the pages etc which were last modified by the author(s) you specify here. |
Label(s) |
no |
None specified i.e. display all content |
Filter the results by label. The macro will display only the pages etc which are tagged with the label(s) you specify here.
|
Maximum Number of Results |
no |
15 |
Specify the maximum number of results to be displayed. If this parameter is omitted, then a maximum of 15 results are displayed. The theoretical maximum value that this parameter can accept is 2 to the power of 31, minus 1 (or 2147483647), though this has been limited to 200 in the code, for performance reasons. More details are here. |
Show User Profile Pictures |
no |
false |
Specify |
Space(s) |
no |
@self, i.e. the space which contains the page on which the macro is used |
This parameter allows you to filter content by space. The macro will display only the pages etc which belong to the space(s) you specify here. Special values: |
Include these Content Types Only |
no |
all types |
This parameter allows you to filter content by content type. The macro will display only the content of the type you specify here. Available values: |
Width of Table |
no |
100% |
Specify the width of the macro display, as a percentage of the window width. |
theme |
no |
'concise' with the heading 'Recently Updated' |
Choose the appearance of this macro:
|
Examples
1. Include content from all spaces
The code below will show all the pages from all the spaces that have been recently updated:
{recently-updated:space=@all}
2. Include content from specific spaces
Use the code below to specify the spaces for which you want to view recently updated content:
{recently-updated:space=SPACEKEY1,SPACEKEY2}
3. Specify the width of the display
Use the code below to limit the width of the display to 50% of the window:
{recently-updated:width=50%}
4. Filter content using labels
The code below will include recently updated content labelled with 'timesheets' or 'summaries', from the 'sales' and 'marketing' spaces, provided that the content is not labelled with 'obsolete':
{recently-updated:space=sales,marketing|label=timesheets,summaries,-obsolete}
5. Filter by content type
Use the code below to show pages only (not news items, comments or any other content type):
{recently-updated:type=page}
6. Change the number of results in the list
The code below changes the number of results listed (from the default value of 15) to 8:
{recently-updated:maxResults=8}
7. Display profile pictures
The code below will display the profile picture of the user who most recently updated the content.
{recently-updated-dashboard:showProfilePic=true}
8. Display recent comments, including profile pictures and text
The code below will display recent comments in the current space, showing the profile picture of the users who made the comments, plus the first line or two of the comment text.
This is the only way to ensure that the text of the comments is displayed, using this macro.
{recently-updated-dashboard:types=comment|showProfilePic=true}
Customising the wording
If you would like to change the wording displayed by the 'Recently Updated' macro, please refer to the document on modifying the Confluence interface text.
RELATED TOPICS
Recently Updated Dashboard Macro
Viewing Recently Updated Content
Working with Macros
Take me back to the Wikis Help Guide.