Discuss all things Remember The Milk.


MilkScript: expose order of tasks

kern3lly says:
I'd like to write a script that operates only on the first subtasks. I want their names to be shown as suffixes in the parent tasks (ex. "parent → subtask"). The problem is that currently there's no way to tell which of the subtasks is the first task in order set by the user. task.getSubtasks() disregards the order. There's also no way to get the underlying order variable so we could sort ourselves.

It would be great to get the place in the order of a task from a specified smartlist (when passing it as a parameter) or its base list (by default, when no parameter).

Thanks in advance! :)
Posted at 2:40pm on September 24, 2023
Log in to post a reply.