Hi guys,
I am busy creating a forge macro, that allows users to create a page, which is essentially a template, but this page has another macro, that I also created, within it.
I noticed however that after the page is created, the macro has this error:
Then, when I enter the editor, my macro disappears and I see this at the bottom:
If I convert my page, I still don’t see the macro as it’s lost.
Here is my endpoint call (btw - the value being passed in, is what I got from the storage format of a test page I created, with my macro in it)
{
"title": "Testing4",
"type": "page",
"space": {
"key": "CCP"
},
"status": "current",
"body": {
"storage": {
"value": "<h2>Decision Information</h2><table data-layout=\"default\"><colgroup><col style=\"width: 340.0px;\" /><col style=\"width: 340.0px;\" /></colgroup><tbody><tr><th><p><strong>Decision</strong></p></th><td><p><a href=\"https://pretendurl.atlassian.net/browse/SMTP-66\" data-card-appearance=\"inline\">https://pretendurl.atlassian.net/browse/SMTP-66</a></p></td></tr><tr><th><p><strong>Duplo Block</strong></p></th><td><p>Operations - Change management</p></td></tr><tr><th><p><strong>Market</strong></p></th><td><p>MX</p></td></tr><tr><th><p><strong>Document Owner</strong></p></th><td><p><ac:link><ri:user ri:userkey=\"8a7f808a77b11dd10177b3fa2d8a00f3\" /></ac:link> </p></td></tr></tbody></table><h2>Approvals</h2><ac:adf-extension><ac:adf-node type=\"extension\"><ac:adf-attribute key=\"extension-type\">com.atlassian.ecosystem</ac:adf-attribute><ac:adf-attribute key=\"extension-key\">6a330369-a958-44ad-8acf-8ff0a77d7ec2/a1680b60-ccba-471c-983f-692c8b4c17d9/static/confluence-approvals-hello-world</ac:adf-attribute><ac:adf-attribute key=\"parameters\"><ac:adf-parameter key=\"local-id\">a8e8ac32-42c6-4b3d-8a35-69ec46034d33</ac:adf-parameter><ac:adf-parameter key=\"extension-id\">ari:cloud:ecosystem::extension/6a330369-a958-44ad-8acf-8ff0a77d7ec2/a1680b60-ccba-471c-983f-692c8b4c17d9/static/confluence-approvals-hello-world</ac:adf-parameter><ac:adf-parameter key=\"extension-title\">Confluence Approvals</ac:adf-parameter><ac:adf-parameter key=\"guest-params\"><ac:adf-parameter key=\"approval-heading\">Operator Approval</ac:adf-parameter><ac:adf-parameter key=\"waiting-status\">Waiting for Approval</ac:adf-parameter><ac:adf-parameter key=\"approved-status\">Approved</ac:adf-parameter><ac:adf-parameter key=\"declined-status\">Declined</ac:adf-parameter><ac:adf-parameter key=\"users\"><ac:adf-parameter-value>60d2d85594692800700b79e5</ac:adf-parameter-value></ac:adf-parameter></ac:adf-parameter></ac:adf-attribute><ac:adf-attribute key=\"text\">Confluence Approvals</ac:adf-attribute><ac:adf-attribute key=\"layout\">default</ac:adf-attribute><ac:adf-attribute key=\"local-id\">36ad464f-9ffa-45d9-a0f0-dd5d8282ce85</ac:adf-attribute></ac:adf-node><ac:adf-fallback><ac:adf-node type=\"extension\"><ac:adf-attribute key=\"extension-type\">com.atlassian.ecosystem</ac:adf-attribute><ac:adf-attribute key=\"extension-key\">6a330369-a958-44ad-8acf-8ff0a77d7ec2/a1680b60-ccba-471c-983f-692c8b4c17d9/static/confluence-approvals-hello-world</ac:adf-attribute><ac:adf-attribute key=\"parameters\"><ac:adf-parameter key=\"local-id\">a8e8ac32-42c6-4b3d-8a35-69ec46034d33</ac:adf-parameter><ac:adf-parameter key=\"extension-id\">ari:cloud:ecosystem::extension/6a330369-a958-44ad-8acf-8ff0a77d7ec2/a1680b60-ccba-471c-983f-692c8b4c17d9/static/confluence-approvals-hello-world</ac:adf-parameter><ac:adf-parameter key=\"extension-title\">Confluence Approvals</ac:adf-parameter><ac:adf-parameter key=\"guest-params\"><ac:adf-parameter key=\"approval-heading\">Operator Approval</ac:adf-parameter><ac:adf-parameter key=\"waiting-status\">Waiting for Approval</ac:adf-parameter><ac:adf-parameter key=\"approved-status\">Approved</ac:adf-parameter><ac:adf-parameter key=\"declined-status\">Declined</ac:adf-parameter><ac:adf-parameter key=\"users\"><ac:adf-parameter-value>60d2d85594692800700b79e5</ac:adf-parameter-value></ac:adf-parameter></ac:adf-parameter></ac:adf-attribute><ac:adf-attribute key=\"text\">Confluence Approvals</ac:adf-attribute><ac:adf-attribute key=\"layout\">default</ac:adf-attribute><ac:adf-attribute key=\"local-id\">36ad464f-9ffa-45d9-a0f0-dd5d8282ce85</ac:adf-attribute></ac:adf-node></ac:adf-fallback></ac:adf-extension><h2>Goals</h2><p /><h2>Background and strategic fit</h2><p /><h2>Digi Adoption</h2><p /><h2>Digi Implementation</h2><p /><p><br /></p>",
"representation": "storage"
}
}
}
In body, if I try “view”, the api gives me an error that I cannot convert storage to view.
I’ve also tried using:
"body" : {
"editor" : {
"value" : "some test data here",
"representation": "storage"
}
}
But it doesn’t work either.
Final page ends up looking like this:
Any assistance would be gladly appreciated