/
Lucid Chart diagram broken during copyPage across Confluence instances
Lucid Chart diagram broken during copyPage across Confluence instances
Problem Statement
Lucid Chart diagram is broken when using copyPage action to copy pages across Confluence instances.
Environment
Application | Confluence |
---|---|
Version | Server ( all versions) |
App Version | Confluence CLI ( all versions) |
Cause
The copyPage action copies the storage format from the source page to the target page without any modification. A Lucid Chart diagram uses attachment ID to render the image. This Lucid Chart diagram is created in the target instance with a different attachment ID.
Solution
Run getAttachmentList on the source and target page to get the corresponding attachment IDs for the Lucid Chart file (e.g. myLucidChart.json).
Source page (page ID 1)
--action getAttachmentList --id 1 --outputType table --columns 2,4
Target page (page ID 2)
--action getAttachmentList --id 2 --outputType table --columns 2,4
Run modifyPage to update the attachment IDs in the Lucid Chart macro on the target page (page ID 2) where "12345" is the attachment ID from the source page (page ID 1) and "67890" is the attachment ID on the target page (page ID 2).
--action modifyPage --id 2 --findReplace "12345:67890"
, multiple selections available,
Related content
Examples
Read with this
The parent page destination field is not populating properly on Copy Page Tree page
The parent page destination field is not populating properly on Copy Page Tree page
More like this
How to resolve the page not rendering properly for HTML macro
How to resolve the page not rendering properly for HTML macro
More like this
removeAttachmentVersion is not working as expected for Confluence CLI
removeAttachmentVersion is not working as expected for Confluence CLI
More like this
How to fix the same pageId issue which occurs when using @pageId@
How to fix the same pageId issue which occurs when using @pageId@
More like this
How to automatically cache temporary images - 7.x
How to automatically cache temporary images - 7.x
More like this