I recently heard about a use case that perfectly could be solved by creating a checklist via a script. The use case requires to create the list, checklist tasks and also sub-tasks. I was curious whether we actually support this use case already and started with a small script. I successfully created the list and top level tasks but unfortunately recognized that there is an issue with the creation of sub-tasks still.
Please find attached my sample script. Line 18-20 are commented, they do not work with the latest version of the factory.js.
Once we fixed that, I will repost stuff here.
Happy Scripting
Jan