It looks like $pageManager was removed from the default velocity context so it is no longer available for use in user macros. This has broken a ton of our user macros. Anyone know of a way to get it back or something that can do similar function as it? We used $pageManager.getPage() a lot.
@Davin Studer Atlassian introduced so-called allowlists to Velocity templates, and drastically reduced the objects/methods available for user macros. So, what you see is by design and for security reasons.
(All Confluence apps had to be adjusted for these allowlists.)
I don't know about user macros, but it seems you can add objects to the Velocity context by configuring system properties! See the section "Method allowlist" on this page.
It looks like you're new here. Sign in or register to get started.