This page last changed on Dec 02, 2008 by smaddox.

The Recently Updated macro displays a list of the most recently changed content within Confluence.

The Recently Updated Dashboard macro is similar to this one, but is intended for display on the Confluence dashboard.

On this page:

Error formatting macro: toc: java.lang.NullPointerException

Basic Usage

{recently-updated}

Working Example of Usage

Below is a working example of the 'Recently Updated' macro. In the example, we have restricted the display to 10 results.

What you need to type What you will get
{recently-updated}
Recently Updated
by Andy Brook (a minute ago)
Re: JIRA Issues Macro (Confluence Docs 2.10)
by Kevin Turner (16 minutes ago)
Re: JIRA Issues Macro (Confluence Docs 2.10)
by Maleko Taylor [Atlassian] (21 minutes ago)
Fix Out of Memory errors by Increasing Available Memory (Confluence Docs 2.10)
by Peter R. (39 minutes ago)
Re: Performance Tuning (Confluence Docs 2.10)
by Jeremy Largman (an hour ago)
Configuring System Properties (Confluence Docs 2.10)
by Jeremy Largman (an hour ago)
Hiding the People Directory (Confluence Docs 2.10)
by Jeremy Largman (2 hours ago)
Rebuild index from scratch (Confluence Docs 2.10)
by kirk kness (3 hours ago)
Re: How Do I Get More Statistics From Confluence? (Confluence Docs 2.10)
by Jeremy Largman (3 hours ago)
How Do I? (Confluence Docs 2.10)
by Jeremy Largman (3 hours ago)
How Do I Get More Statistics From Confluence? (Confluence Docs 2.10)
by Jeremy Largman (3 hours ago)
Redirect users to a page on login (Confluence Docs 2.10)
by Anonymous (4 hours ago)
Re: Building Confluence From Source Code (Confluence Docs 2.10)
by Arie Murdianto (8 hours ago)
Re: Hiding the People Directory (Confluence Docs 2.10)
by Azwandi Mohd Aris (8 hours ago)
Re: Working with Links Overview (Confluence Docs 2.10)
by Azwandi Mohd Aris (9 hours ago)
Re: Editing a Comment (Confluence Docs 2.10)

Optional Parameters

Parameter Default Description
label 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.

You can specify one or more label values, separated by a comma or a space.
  • To exclude content which matches a given label, put a minus sign (-) immediately in front of that label value. For example: If you specify a label value of -badpage you will get only content which is not labelled with 'badpage'.
  • To indicate that the results must match at least one of the specified label values, simply list the labels separated by commas. For example: If you specify a label value of -badpage,goodpage,superpage you will get content which has a label of either 'goodpage' or 'superpage' (or both) but does not have the label 'badpage'.
  • To indicate that the results must match a given label value, put a plus sign (+) immediately in front of that label value. For example: If you specify a label value of +superpage,+goodpage you will get only content which has at least two labels, being 'superpage' and 'goodpage'.

If there are no pages matching any of the specified labels, then Confluence will ignore the labels and will list all recently updated pages, as well as showing a message, "These labels don't exist and were ignored: xxx ". This unexpected behaviour is noted in issue CONF-10167.
labels
None specified i.e. display all content
Exactly the same as label above.
reverse false Use this parameter in conjunction with the sort parameter described below. Set reverse=true to change the sort from ascending to descending order.

Note: this parameter is ignored if the sort parameter is not specified.
showProfilePic false Specify showProfilePic=true to display the profile pictures of the users who updated the content.
sort modified Specify how the results should be sorted. To change the sort order from ascending to descending, use the reverse parameter described above.

Note: If this parameter is not specified, the sort order defaults to descending order based on the last modification date.

Values:
  • creation — Sort by the date on which the content was added.
  • title — Sort alphabetically by title.
  • modified — Sort by the date on which the content was last updated.
space @self, i.e. the space which contains the page on which the macro is coded 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.

You can specify one or more space keys, separated by a comma or a space.
  • To exclude content in a specific space, put a minus sign (-) immediately in front of that space key. For example: If you specify a space key of -BADSPACE you will get only content which is not in the BADSPACE.
  • To indicate that the results must come from least one of the specified spaces, simply list the space keys separated by commas. For example: If you specify the space keys of YOURSPACE,GOODSPACE you will get content from both YOURSPACE and GOODSPACE.
  • To indicate that the results must come from a specific space, put a plus sign (+) immediately in front of that space key. For example: If you specify a space key of +GOODSPACE you will get only content in GOODSPACE. (Note that this is not particularly useful, because each content item belongs to one space only. If you put a plus sign next to one space key and list other space keys too, the other space keys will be ignored.)


Special values:
  • @self — The current space.
  • @personal — All personal spaces.
  • @global — All global spaces.
  • @favorite — The spaces you have marked as favourite.
  • @favourite — The same as @favorite above.
  • @all — All spaces in your Confluence site.
  • * — The same as @all above.

When specifying a personal space, remember to use the tilde (~) sign in front of the username, such as ~jbloggs or ~jbloggs@example.com.

spaces The space which contains the page on which the macro is coded Exactly the same as space above.
type all This parameter allows you to filter content by content type. The macro will display only the content of the type you specify here.

You can specify one or more types, separated by a comma or a space.
  • To exclude content of a given content type, put a minus sign (-) immediately in front of that content type. For example: If you specify a content type of -comment you will get pages, news items and all other content except comments.
  • To indicate that the results must be of a given content type, put a plus sign (+) immediately in front of that content type. For example: If you specify a label value of +comment you will get only comments. You will get the same results if you specify a single value of comment. (Note that this is not particularly useful, because each content item belongs to one content type only. If you put a plus sign next to one content type and list other content types too, the other content types will be ignored.)
  • To indicate that the results must match at least one of the specified content types, simply list the content types separated by commas. For example: If you specify a content type of comment,page you will get comments and pages.


Available values:
  • pagePages.
  • blogpostNews items, also known as blog posts.
  • news — The same as blogpost above.
  • commentComments on pages and news items.
  • mailEmail messages.
  • attachmentAttachments.
types all types Exactly the same as type above.
width 100% Specify the width of the macro display, as a percentage of the window width.

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. Sort the results

Use the code below to sort the list of items by date last modified, with the most recent at the top:

{recently-updated:sort=modified|reverse=true}

6. Filter by content type

Use the code below to show pages only (not news items, comments or any other content type) and sort the list of items by date last modified, with the most recent at the top:

{recently-updated:sort=modified|reverse=true|type=page}

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 Confluence User Guide

Document generated by Confluence on Dec 03, 2008 15:16