I see this post about How to use ContentService instead of PageManager?, which is great for when I need to use ScriptRunner.
But how do I do the same thing inside of a custom User Macro with Velocity?
I can't figure out how to do the Expansion part. There is no documentation.
I tried something like this, but I knew it would fail miserably, and did.
#set($contentFinder = $contentService.find(new Expansion('content'))
.withPropertyKey($spaceKey)
.withContentId($pageId)
.fetch())
It should be a requirement before releasing a deprecation's replacement to document the crap out of the new class. This is so frustrating!
Does anybody have any ideas?