Forums

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

Spacelist Macro

Normann P_ Nielsen _Netic_
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 26, 2025

As 

#set ( $allSpaces = $spaceManager.getAllSpaces() )

is deprecated, how do I use:

#set($spaces = $spaceService.find().fetchMany(new SimplePageRequest(0, 1000))

correctly - above does npot work.

 

I also assume I need spaceService in :

 

JVM_SUPPORT_RECOMMENDED_ARGS=-Dconfluence.startup.remigration.disable=true -Dupm.plugin.upload.enabled=true -Dmacro.required.velocity.context.keys=pageManager,spaceService,spaceManagerInternal,attachmentManager,permissionHelper,userAccessor,i18n,dateFormatter,res,settingsManager,htmlUtil,generalUtil,bootstrap,containerContext,action,req,content

 

Still does not work though

 

1 answer

0 votes
Aron Gombas
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 26, 2025

It may not be the actual solution, but I noticed that a closing bracket is missing from  your expression?!

This:

#set($spaces = $spaceService.find().fetchMany(new SimplePageRequest(0, 1000))

... should be:

#set($spaces = $spaceService.find().fetchMany(new SimplePageRequest(0, 1000)))

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events