It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can I programmatically create a diagram in Confluence page? Edited


What I have for now : Confluence Cloud with the plugin.

What I try to achieve : I have a devops (CI/CD) pipeline that is working pretty well, but I want to document automatically the architecture of the application.

What I tried so far : I use the API rest of Confluence to create a new page and everything is working well. I also succeeded to create a CSV file that could be imported easily to create a diagram. I used a C# console application that I want to launch from my pipeline (this part is easy).

What is not working :

  1. Creation of the macro (the html is so cryptic for this macro)...
  2. Automation of the javascript sequence to use the CSV feature : Menu Arrange/Insert/Advanced/CSV... and the copy of the CSV in the textbox. I<m still thinking to use Selenium to automate the process. But I'm affraid that something will break in a future version...

Someone has an idea? Could I use an API or something else to achieve my goal?

Thank you!


1 answer

The format for the macro is Atlassian defined, but I think it's fairly standard for all macros. There's an ID in the macro, but I would try generating it without that parameter. If you create a drawio macro, it should be possible to reverse engineer it from the storage format of that page.

The second part we don't currently have, you would need to vote for

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

327 views 9 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you