Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to add valid "info" macro to page using rest api

Zvarych_D_V
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 5, 2023

Im have create the "info" macro status in confluence page using UI. Then I copied the macros html code and putted it into the rest api call.
After update the page in the page displayed the valid "info" macro BUT on EDIT page mode this status displayed as only text from it, and even update again this page, the macro still displayed as needed.

The html "info" macro code what im using in api call:

<p style="text-align: center;"><span class="status-macro aui-lozenge aui-lozenge-success conf-macro output-inline" data-hasbody="false" data-macro-name="status">CREATED</span>&nbsp;</p>

 After update the page using api call the "info" macro html code looks like:


<p style="text-align: center;"><span class="status-macro aui-lozenge aui-lozenge-success conf-macro output-inline">CREATED</span>&nbsp;</p>

 

NOT ON EDIT MODE:

image.png

ON EDIT MODE:
image.png

 As i understood the confluence miss some kays like data-hasbody and data-macro-name
And i have no idea how to fix it, maybe Im doing some mistake?

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events