Confluence forge macro copy and paste in editor

I want to copy and paste a Confluence forge macro in the editor.
Right now pasting a copied macro creates a vanilla version of the forge macro, as if there was no user input yet. However the source macro already has had input.
Simple example, due-date macro, non-bodied, no macro config. A user wants to create a list of due dates via copy and paste in the editor.

  1. User inserts first due-date macro, selects a due-date from a calendar, the macro stores the selected due date
  2. User copies the macro in the editor
  3. User pastes the macro in the editor on the same page
  4. The result is an empty due-date macro

Questions

What is the best way to copy and paste a macro and its state in the Confluence editor?

How does the original Confluence forge macro ‘know’ it’s been copied?

How does the pasted Confluence forge macro ‘know’ where it has been copied from?

Doesn’t sound like a unicorn problem..

Your help and insights are much appreciated.
Cheers Ulrich

Good question! Try this: Copy & Paste Confluence Forge Macros like a Pro: Sharing Stateful Forge Macros via URL