Setting the shown page in draw.io macro in a confluence page
Asked by Wilfried Sibla:

We switched recently from Confluence Server to the Cloud Version.

In detail, I have **a draw.io file** attached to a certain confluence page which c**ontains multiple diagrams on different draw.io pages**.

On the confluence page I have **multiple draw.io macros** , **each of them showing a different/dedicated diagram page** of the **same** draw.io attachment/file.

In the Server Version and the corresponding draw.io \& macro I could select a desired diagram page of the draw.io file in each and every macro instance and this was persisted. Thus, if other user ar looking to the page, they see the diagrams I configured on the macros.

In the current Confluence Cloud, this seems no more to be possible.

Every time the page is opened, in all macros the same diagram is shown. Regardless how I configure the View Settings - either on the confluence page as shown in the screenshot, or in the corresponding diagram settings section within the edit window of draw.io

![2024-01-19 12_31_20-Window.png](https://community.atlassian.com/t5/image/serverpage/image-id/301449iCF8D3928F9FE31D3/image-size/large?v=v2&px=999 "2024-01-19 12_31_20-Window.png")

Looking forward getting some hints how to solve this.

Being forced to have only one diagram in one draw.io file or attachment or showing always browsing through all draw.io diagram pages would not be an acceptable workaround.


Answers:
author: Mohamed Mohamedin
body: Hi,

You can achieve the same results directly from the viewer by selecting the desired page (and layers) then check "Current Viewer State" and save.

The currently viewed page/layers (viewer state) will be shown in this macro on next page reloads.

![Screenshot 2024-01-19 at 11.20.41?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/301507i66C442249D377CDE/image-size/large?v=v2&px=999 "Screenshot 2024-01-19 at 11.20.41?AM.png")![Screenshot 2024-01-19 at 11.22.11?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/301506i7E3D2706F6CDFF66/image-size/large?v=v2&px=999 "Screenshot 2024-01-19 at 11.22.11?AM.png")


author: Marija Radovic
body: Hi [@Wilfried Sibla](/t5/user/viewprofilepage/user-id/5409636)

If you open the drawio editor and click Customize as shown in the images, does it help?

Thanks,

Marija

![customize.png](https://community.atlassian.com/t5/image/serverpage/image-id/301464i34BD0FE9EE268305/image-size/large?v=v2&px=999 "customize.png")

![choose page.png](https://community.atlassian.com/t5/image/serverpage/image-id/301465iBBE2C69CC699C7D8/image-size/large?v=v2&px=999 "choose page.png")


author: Rebekka Heilmann _viadee_
body: Hi [@Wilfried Sibla](/t5/user/viewprofilepage/user-id/5409636) and welcome to the Community!

I've actually never used pages within draw.io so glad I found your question ;) we actually had a recent support case and they are really helpful.

So maybe just try and contact the draw.io Support in case noone in the Community has an answer right away: [draw.io for Confluence and Jira Desk - Jira Service Management (atlassian.net)](https://drawio.atlassian.net/servicedesk/customer/portal/14)

comments: author: Rebekka Heilmann _viadee_
body: I actually tested it right now.

If you edit the diagram you will have following panel on the right. Whatever you set there will be shown to the viewer:

![Screenshot 2024-01-19 133735.png](https://community.atlassian.com/t5/image/serverpage/image-id/301461i458D24F153439163/image-size/large?v=v2&px=999 "Screenshot 2024-01-19 133735.png")

With Custom you can select a page and layers.


author: Wilfried Sibla
body: Hey Rebekka,

thanks for your reply.

It seems that there's also a issue with draw.io

As you can see in my picture - trying to follow your advice - I have 6 diagrams (the 6th one are the blue boxes) in my draw.io file, but I only can see 5 (the red boxes) in the View Settings Customize dialog.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/301929iED36D82BE29A7D86/image-size/large?v=v2&px=999 "image.png")

I think, this would be one for the draw.io support


author: Wilfried Sibla
body: in general, I think the approach to have multiple diagrams in one draw.io file and show simultaneously these different diagrams on one confluence page - or even on different pages from the same source - is a good approach to avoid inconsistent content.


author: Rebekka Heilmann _viadee_
body: True - that certainly seems to be a case for their support. Like I said - they are quite helpful and probably thankful for any advice on bugs and issues.


author: Mohamed Mohamedin
body: [@Wilfried Sibla](/t5/user/viewprofilepage/user-id/5409636) Issue will be fixed in the next release. Thanks for the report


author: Wilfried Sibla
body: Just to link the fixed issue:

<https://drawio.atlassian.net/servicedesk/customer/portal/14/DID-10568>

For the main topic of my request, I'll have to file a new draw.io bug.


author: Wilfried Sibla
body: since we migrated our space from Confluence Server/DataCenter to Confluence Cloud as mentioned above, I tried to reproduce the issue once again on a new created page and with a new drawio diagram.

Here I got now the following message from drawio:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/302549iD1A39AF0AE238372/image-size/large?v=v2&px=999 "image.png")

But on the confluence page later on I still see the wrong diagram tab sheet from the drawio file.


author: Wilfried Sibla
body: and by the way: Renaming the drawio file/attachment does also not work. It simply keeps the old name in the page attachments list


author: Marija Radovic
body: Hi,

File \> Rename within the drawio editor expected behavior is to change diagram title one sees when Confluence page with the diagram is opened.

Do you see this differently?

P.S Diagram title change and diagram attachment change are two separate things. Are you trying to rename the attachment, please?

Kind regards,

Marija


Tags: cloud

confluence-cloud

draw.io