updating diagram macros without macro editor

22 views
Skip to first unread message

Jan Revis

unread,
Mar 14, 2017, 12:54:32 PM3/14/17
to Atlassian Connect Dev

Hi,

I have a situation in which I need to update my add-on macros with additional properties that affect how it is displayed in Confluence.  However, I do not want to make the users re-save every macro through the macro editor to add the properties.  Is there an API available through which we can do this?  The only option I see would be directly modify the page by modify the storage content.  Is there a way that this can be done that would be less risky and computationally intensive?    Even though, Confluence performs validation on the xhtml when the storage content is updated and there is the ability to restore a previous version of a page, I'm a little concerned there could be some edge cases where the page content is modified in unanticipated ways.  Are there any viable alternatives to modifying the storage content?

Dmitry Pashkevich

unread,
Mar 15, 2017, 2:39:24 PM3/15/17
to Atlassian Connect Dev
Modifying the page storage format is your only option. It looks a bit scary, but totally feasible. Just use an XML parser and be careful :)
Reply all
Reply to author
Forward
0 new messages