More and more, I’m running into situations where I need to deep copy an entity and its children / grandchildren (structure and content). Typically, this is a project in a space, where I want a second (third etc) instance of that project in the same space.
The data hierarchy is:
project 1:M sections
section 1:M tasks
task 1:M sub-tasks
…no M:M associations
Workarounds
-
I’ve tried duplicating at the space level, but what I really need is to duplicate a project within a space.
-
I’ve tried automation, but I’m not seeing any functions that iteratively copy entities(e.g. all tasks in a section)
Javascript
I can certainly take a shot at writing a js automation, but after reviewing the scripts in automation guide, I’m not sure I’ve got a complete understanding of the Fibery object model. Likewise, I did a search thru the templates for example js.
- is there an example of javascript that copies an entity?
Roadmap
I understand that Fibery is unopinionated, but I really think that a deep copy function, even one with limitations, would be valuable to many users.
- is a deep copy function in the roadmap, even long-term?
Thx!