Reorder or move tasks inside a section or project

Hi,

I’m trying to create a script that sorts my tasks each morning based on a collection of rules. This is something that I do every morning, as I have a lot of small tasks and I like doing them in batches.

I’ve been reviewing the API reference, but I’ve not been able to find anything to move tasks around. I’ve seen that it is possible to move sections based on Move or insert sections and it would nice to be able to do something similar with tasks (but not the same, as insertsectionforproject creates a new section).

Any recommendation about this? I guess this is not possible right now.

Thank you. Best,
Alfonso

Hi @alfonsomoure,

I’m pretty sure this endpoint will do what you want:

It’s documented to add a task to a section, but my recollection is if that task is already there and you specify an insert_before or insert_after parameter, it will move the existing task. Give it a go!

Hi @Phil_Seeman ,

Thanks, I’ll give it a try :smiley:

1 Like