Confluence: Action to hide all layers and show one layer gets a refresh issue
Preflight Checklist
- [x ] I agree to follow the Code of Conduct that this project adheres to.
- [x ] I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Describe the bug Creating an action to hide all cells/layers, except one. Clicking that action: it updates the layer palette correctly, but all cells remain hidden.
To Reproduce Steps to reproduce the behavior:
- Create or use drawing with a few layers.
- Add an element (button) and add an action. Set action as below:
- Test action.
Expected behavior Elements in excluded layer appears.
Actual: Everything is hidden, nothing appears. But layers palette is correctly updated and shows the excluded layers as visible.
Code:
data:action/json,{
"actions": [
{
"hide": {
"cells": [
"*"
],
"excludeCells": [
"1",
"MxYWe1OhUYw2CJvPoIkA-9"
]
}
}
]
}
Screenshots
draw.io version (In the Help->About menu of the draw.io editor):
- draw.io version 20.3.0
Desktop (please complete the following information):
- OS: win Microsoft Windows [Version 10.0.19044.2728]
- Browser chrome
- Version 111.0.5563.111 (Official Build) (64-bit)
Thanks @mawid6, I was researching why this was happening to me, and stumbled across your post. Im having the exact same issue!
Similar issue for me on draw.io for Confluence Cloud. :(
Preflight Checklist
- [x] I agree to follow the Code of Conduct that this project adheres to.
- [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Describe the bug When all layers and tags are visible and the below action is executed, all layers are hidden.
data:action/json,{
"actions": [
{
"hide": {
"tags": [
""
]
}
},
{
"show": {
"tags": [
"1"
]
}
}
]
}
To Reproduce Steps to reproduce the behavior:
- Create a new draw.io diagram in Confluence
- Create two or more layers with one of more shapes in each.
- Create a rectangle in either layer.
- Right-click rectangle and select
Edit Link... - Add the following action in the
Drag URLs herebox:data:action/json,{"actions":[{"hide":{"tags":[""]}},{"show":{"tags":["1"]}}]} - Click
Apply - Click the rectangle to which the link was added
- Select
Action - The results in all layers being hidden and all tags to remain visible.
Expected behavior The below action should hide all tags and then show one tag. Instead, it hides all layers.
data:action/json,{"actions":[{"hide":{"tags":[""]}},{"show":{"tags":["1"]}}]}
Screenshots
Before action execution:

After action execution:

draw.io version (In the Help->About menu of the draw.io editor):
- draw.io version 21.1.8
- draw.io for Confluence Cloud version 1.4.60-AC
Desktop (please complete the following information):
- OS: Edition Windows 11 Pro Version 22H2 Installed on 2/21/2023 OS build 22621.1555 Experience Windows Feature Experience Pack 1000.22640.1000.0
- Browser: Chrome Version 112.0.5615.86 (Official Build) (64-bit)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.
Same exact issue but not only on Confluence, but also on the web version of the app on Edge Version 125.0.2535.92 (Official build) (64-bit)
@ptoump Please add a test case.