milkscript duplicate task
![](/img/avatar_default.png?1522022400)
I don't see a duplicate function in the milkscript reference [https://www.rememberthemilk.com/services/milkscript/methods/]. There is a duplicate task option in the GUI web app. Does this function exist in milkscript?
I suppose I could write it myself by iterating through all a task's member and copying them over one by one.
I suppose I could write it myself by iterating through all a task's member and copying them over one by one.
![](/img/avatar/7/h/7h20wffvtarhuv7p8l41ufced/1727987508054/avatar_48.png?1727987460)
andrewski (Remember The Milk) says:
Hi nah.why,
You're right that there's currently no method to duplicate a task. Right now, iterating through a task's properties would work.
I'll also pass this on to the development team, in case they are willing to create one that you could use down the road! 💙
You're right that there's currently no method to duplicate a task. Right now, iterating through a task's properties would work.
I'll also pass this on to the development team, in case they are willing to create one that you could use down the road! 💙
![](/img/avatar_default.png?1522022400)
While it's not the same thing, and not as good, one idea is to use a similar idea to example milkscript "Tasks from note" https://www.rememberthemilk.com/services/milkscript/quickstarts/tasksfromnote.rtm
In this case, though, you might put a smart add string in the note, and then just rtm.addTask(notestring, true) with parse smart add as true.
That means for a task you want to duplicate, you'd have to manually create a smart add equivalent string manually and store it in a note. Once done, you could duplicate it (in this way) multiple times without any more manual effort.
You might also chain the duplication by placing a copy of the smart add string in the note of the new task.
If I get this working I'll post it here.
In this case, though, you might put a smart add string in the note, and then just rtm.addTask(notestring, true) with parse smart add as true.
That means for a task you want to duplicate, you'd have to manually create a smart add equivalent string manually and store it in a note. Once done, you could duplicate it (in this way) multiple times without any more manual effort.
You might also chain the duplication by placing a copy of the smart add string in the note of the new task.
If I get this working I'll post it here.