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

Hi All,

any idea?

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

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

We get the attached error message.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

1,919 views 25 10
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