Rename a draw.io diagram file in Confluence Server
Confluence doesn’t easily allow you to rename attachments that are used within macros. You can manually rename the two attachment files and edit the source of the Confluence page with a free app.
- On the page that contains the diagram file you want to rename, click on the three dots
... in the page menu, then select Attachments.
- Click on Properties to the right of the draw.io diagram file you want to rename.
- Enter a new File Name in the text field, then click Save.
- Repeat the steps above for the
.png image file. Make sure the file name before the file extension matches the diagram file exactly so Confluence knows which preview to display.
- Return to view the page. The macro in the page now needs to be edited to display the new files. Edit the Confluence page.
- Use a free tool, such as Confluence source editor app, and edit the source. With this app, click
< > in the toolbar on the right to edit the page source.
- Find the
diagramName parameter, and change the file name inside the tag to be the new file name, minus its file extension, then click Apply.
If the draw.io diagram is embedded on another page in your Confluence instance or on this page multiple times, you must update each macro in the page source to use the new file name.