MilkScript setList()
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!
Here's what I have so far:
task.setList(rtm.getLists('action'));
Thanks!
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. 💙
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. 💙
Log in
to post a reply.