So I’ve got: Error loading the extension!
on the Confluence Page
My questions:
Is there any documentation on this topic?
Can I omit “local-id” somehow? As I understand it’s unique value for each instance of macro, so I need to provide it somehow via my page generation program.
The team recommends using the ADF (Atlassian Document Format) instead of the storage one.
In order to get an ADF representation of a page you can use https://<SITE NAME>.atlassian.net/wiki/rest/api/content/<CONTENT ID>?expand=body.atlas_doc_format
We also have the use case of wanting to add macros to a page via an API call. It is a macro that a space admin may want to add at the bottom of many pages.
Even using ADF it seems there are several unique id’s that we need to add for the macro to be added.
Some of these can be constructed from the product context - but others we cant. It would be great if the Confluence team could document how a forge macro is supposed to be represented in the ADF (connect macros are also not documented in ADF docs), and if the forge team could ensure we actually have the required id’s in the right format as part of the product context.