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

Including files in PlantUML

I want to include files stored in confluence in my PlantUML code.

I can include files from github: as in






I have files loaded as attachments to pages. How do I find the URL??

The attachments page lists them, if I select and right click I get




I just want to link to the file ....





1 answer

0 votes
Daniel_Eads Atlassian Team Aug 13, 2019

Hey David,

I think you've found how to get the address of the attachment already! Just as you noted, from the Attachments page you just right-click the attachment you want to link and copy the hyperlink.


You can strip the "?api=v2" from the end of the URL if the system you're trying to use expects to see .jpg or .png at the end of a URL. It's not required to display the file.


What you might be running into is a permissions problem. Confluence will protect your attachments from unauthorized users if the space/page are not set for anonymous access. PlantUML or another service trying to load that URL from an unauthenticated source might be hitting the login screen (and throwing an error because the login screen isn't an attachment). If you want to set the entire space as public, you can read about how to do that here. Setting the space (and subsequently, the individual page you're on) to public will allow any user/system to access the content without having to sign in.

Hope that helps explain things!

Suggest an answer

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

What project did you transition or start on Confluence with the shift to remote work?

It’s been great to hear from fellow users over the last few weeks about the best tips and fun moments you’ve had working on Confluence since the transition to working remote. I’d love to keep the c...

227 views 3 8
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