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 ....
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!
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...
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