Spaceaccess macro problem after upgrade to 4.2

Hi All,

we just upgraded our Confluence from 3.5 to 4.2. In the Admin -> User Macros menu we get an announcement info:

"There are user macros with wiki formatted templates. They have been highlighted below.

For these macros to continue working in future versions of Confluence they must be manually changed to use HTML templates.

There are user macros without any metadata configured in their template. They have been highlighted below.

For these macros to be available for use in content they require parameter information. See the Guide to User Macro Templates."

The weird thing is that this is with the 'spaceaccess' macro which is an "official" Atlassian macro.

Can you please suggest for a help?

Thanks in advance!

Rumi

4 answers

This widget could not be displayed.

Hi All,

any idea?

This widget could not be displayed.

Can you post the code for the macro and we'll take a look.

This widget could not be displayed.

Hi Matthew,

of course, here is our code:

{report-block}
{combining-reporter:unique=true}
#set ($prevname = "")
#foreach ($perm in $space.getPermissions())
  #if ($perm.isUserPermission())
    #if ($prevname != $perm.getUserName())
      #set ($prevname = $perm.getUserName())
        {user-reporter:user=$perm.getUserName()}
    #end
  #else
    #if ($prevname != $perm.getGroup())
       #set ($prevname = $perm.getGroup())
       {user-reporter:group=$perm.getGroup()}
     #end
  #end
#end
{combining-reporter}

{report-body}
{report-info:user:full name|link=true}
{report-body}
{report-block}

Many thanks for the help!

Rumi

This widget could not be displayed.

We get the attached error message.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

569 views 7 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you