Forums

Discuss all things Remember The Milk.

Script to fetch task permalink

poirty says:
Just wrote my first Milkscript!! If you know JS, no big deal but this felt like a breakthrough to me with very slight coding exposure...

Anyhoo, script grabs the address of the list tasks (in this case 'test'), and puts it in the URL field.

Pretty useless as it is, but could become a manual way to create LINKS between tasks.

'''
const tasks = rtm.getTasks('list:"test"');
tasks.forEach(task =>
task.setUrl(task.getPermalink()));
'''
Posted at 2:30pm on August 6, 2023
Log in to post a reply.