Forums

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

User Macro - Recently Updated - Current User

Alexander Wirtz February 8, 2024

Hello Community,

I need your help with a user macro.

We would like to create a User-Macro based on the Macro Recently Updated. We would like to place it on our dashboard and only show the pages the currently logged in user hast worked on.

This is my current approach. Can you help me?

 

## @noparams

#set( $username = "$req.getRemoteUser()" )

<ac:macro ac:name="recently-updated" ac:schema-version="1">
<ac:author>$username</ac:author>

</ac:macro>

1 answer

0 votes
Fabio Racobaldo _Herzum_
Community Champion
February 23, 2024

Hi @Alexander Wirtz , try the following code :

 

## @noparams

#set( $username = "$req.getRemoteUser()" )

<ac:structured-macro ac:name="recently-updated" ac:schema-version="1" ac:macro-id="64d6bcf3-c362-4715-9d63-fdafd00ff552">
<ac:parameter ac:name="author">
<ri:user ri:userkey="$username" />
</ac:parameter>
</ac:structured-macro>

 

Hope this helps,

Fabio

Alexander Wirtz February 23, 2024

Hey @Fabio Racobaldo _Herzum_ ,

thank you for your help. I just tried it, but it unfortunately is not working. It still shows values from different users.

 

image.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events