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
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,525 views 25 14
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