Confluence user variable for html macro

Tobbe August 13, 2014

Hi

I wonder if its possible to get user data when I use the html macro.
I found this example somewhere $generalUtil.getUserAccessor().getUser($userId) but that will just show as plain text.

Is there a way to use Confluence variables?

1 answer

1 accepted

1 vote
Answer accepted
Stephen Deutsch
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.
August 13, 2014

Hi Tobbe,

the HTML macro renders only HTML; if you want to use Confluence variables, you will have to use a user macro. You can still render HTML in the user macro, but you will also be able to use Confluence variables along with it.

Tobbe August 14, 2014

Yes thank you. that did the trick!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events