Correct XML to programmatically generate PlantUML Macro for Confluence Cloud

Laszlo Török April 26, 2019

I am importing a space from Confluence Server to Cloud. In the process, I need to migrate some PlantUML macros to the Cloud version of the plugin developed by a different company.

I wondering what the correct syntax is WITHOUT using compression, if that is possible at all. I tried something like this, but it doesn't render at all:

<ac:structured-macro ac:name="plantumlcloud" ac:schema-version="1" ac:macro-id="3528663f-b742-40fa-81c8-9021291609fa">
<ac:parameter ac:name="autoSize">true</ac:parameter>
    <ac:parameter ac:name="filename">d66c5f00-3584-46c3-a5f4-2d0ffaa020c7.png</ac:parameter>
    <ac:parameter ac:name="width">800</ac:parameter>
    <ac:parameter ac:name="compressed">false</ac:parameter>
    <ac:parameter ac:name="height">600</ac:parameter>
<ac:parameter ac:name="data"><![CDATA[@startuml
frame NDH {
  database DAPT [
    24h Mobile Traces
  ]
  
}

@enduml]] ></ac:parameter>
</ac:structured-macro>

3 answers

0 votes
Dijk, Stef van
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!
December 18, 2023

For me it worked to manually upload the svg as attachment and then update the page via the atlassian python API. The key was to also include the revision parameter in the HTML.

0 votes
Gianluca Colucci
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!
November 15, 2022

Has anyone ever found a solution to this? 

I need to include the macro programmatically, but somehow it seems not possible without leveraging the integrated editor. 

 

Please, advise. thanks.

0 votes
Quan Minh Nguyen
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!
November 29, 2021

unearthing this topic, does anyone have experience on this?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events