Forums

Discuss all things Remember The Milk.

menu

MilkScript setList()

lensaffair says:
I'd like to update a given task via Milkscript, but all my attempts to set the new list (list is called 'action') fail. API docs won't help much, since they only offer an explanation for moving a task to the Inbox.

Here's what I have so far:

task.setList(rtm.getLists('action'));

Thanks!
Posted at 7:38am on July 29, 2024
andrewski (Remember The Milk) says:
Hi lensaffair,
You can use the following preliminary MilkScript command to "get" the list, which you can then use to set the list for your task.

const actionList = rtm.getLists().find(list => list.getName() === 'action');
task.setList(actionList);


I hope this helps but if you need any further help, we'd love to help by email if you can contact us. 💙
Posted 10 weeks ago
lensaffair says:
Works like a charm; thanks Andrew!
Posted 10 weeks ago
Log in to post a reply.