Following a bit of discussion here in the community about duplicating hierarchies of entities, I put together a space which can be used to clone a top-level entity and all its children, grandchildren etc.
At the moment, any items linked via a one-to-many relationship will be cloned (as will any items linked to them via 1:m, and so on…)
m:m, m:1 and 1:1 relations are ignored, with the exception of m:? relations to users (e.g. Assignees, Owner, etc.).
Once you have installed the space, go to the ‘High level goal’ Objective and find its UUID.
Copy this into the UUID cell in the Clones table, and tick the trigger box.
You should get a perfect clone of the entire hierarchy from Objective through Project to Tasks.
Now try adding a row to the Clones table with the full name of another database in your workspace, and the UUID of a specific entity in that database, and trigger this one.
Fingers crossed.
It’s not been tested thoroughly so please play with it and provide feedback.
Note: because there is no limit on the depth of cloning, it is possible for it to get stuck in a never ending loop
e.g. if you have these relations
Project A → Task 1, Task 2
Task 1 → Project A, Project B
and you try to clone Project A, it will never terminate.
If this happens, you’ll need to disable the automation.