I haven’t had much luck in trying to make macros work when pulling Confluence content objects via REST API. Some macros render quite fine, others, especially dynamic ones like the Jira report, not so much.
Is there any trick? Do I need to include certain JS libraries in order for them to work?
This is how I query the content:
‘/rest/api/content/’ + pageId + ‘?expand=space,body.view,body.export_view’
I use export view since it works mostly the best with some pre-rendered macros. Other view options work less optimal