Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

$helper.renderConfluenceMacro("{recently-updated:type=news|author=$action.user.name|max=10|theme=sidebar|spaces=*}")

Suraiya Banu March 5, 2012

Hi All, I am using the recently updated macro to display only the activity of a user on blogs/news. But I just need it to display the activity on blogs created by me and not the editing that I do on the blogs created by other users in confluence.

Can anybody please tell me how I can achieve it??

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Remo Siegwart
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 6, 2012

You could use the Search Results Macro to search for blogposts created by the user:

{search:maxLimit=10|query=creatorName:$action.user.name|type=blogpost}

Learn more about Confluence Search Fields here.

Hope this helps

Suraiya Banu March 8, 2012

Hi,

Thank you for that, I tried out the search macro and its pretty much like I needed.. But I dint like the way it appears. Is it possible for us to use one macro in conjuction with the other??

Remo Siegwart
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 8, 2012

I don't think it's possible to combine those macros. But if you just want to change the styling of the output, you could use CSS for that.

1 vote
dborsboom March 5, 2012

Use type=blog

I tried it and worked in 3.3.1

This could be your user-macro template:

#set($name = $action.getRemoteUser().name)
#set($macro1 = "{recently-updated:author=")
#set($macro2 = "|max=10|spaces=*|type=blog}")
#set($macroFinal = $macro1 + $name + $macro2)

$action.getHelper().renderConfluenceMacro($macroFinal)

Suraiya Banu March 6, 2012

Hi Doin, I tried it and it works just the way I have mentioned above ie

$helper.renderConfluenceMacro("{recently-updated:type=news|author=$action.user.name|max=10|theme=sidebar|spaces=*}").

I am looking for something which will show my activity on the blogs created by me. What I mean by my activity here is, creation and updation on blogs Authored by me alone. Where as the above macro shows the activity when I update/edit the blogs created by others too, which I do not want to be displayed.

TAGS
AUG Leaders

Atlassian Community Events