The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

How do I use a {recently-updated} macro to always show results for the currently-logged-in user?

MICHAEL O'Neill
Contributor
January 30, 2012

I see how I can type a specific user's name, but I just want it to always show results for content recently edited by the currently logged in user. Is there a way to do this?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
David at David Simpson Apps
Atlassian Partner
January 31, 2012

What Joseph said. Wrap the recently-updated macro in a user macro for the same ends.

In Confluence 4.x and above, something like:

<ac:macro ac:name="recently-updated">
	<ac:parameter ac:name="author">$action.remoteUser.name</ac:parameter>
</ac:macro>

In Confluence 3.x, something like:

{recently-updated:author=$action.remoteUser.name}

 

 

 

1 vote
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 31, 2012

The macro doesn't have the ability to show content for the 'current user' built-in.

You could achieve this by creating a new user macro that wraps the recently-updated macro, passing in the current user as the macro parameter.

TAGS
AUG Leaders

Atlassian Community Events