Task sequencing through API

I’m looking to control the order of tasks within a project or within the subtasks of a task.

I’ve tried a custom field for task order, but subtasks do not get re-arranged when applying filters.

I’ve tried to send the tasks in reverse sequence, but the batch API is in parallel and does not have predictable results.

I’ve started to consider setParent and sections. Do you have any thoughts?

Hi @Marc_Bass,

For the order of subtasks within a task, yes, use the setParent endpoint as documented; let me know if you have any questions about it.

To set the order of a top-level task within a project, use the Add project to a task endpoint: set the project parameter to the gid of the project that the task is already in, set insert_after or insert_before to the gid of the other task you want to be relative to the target task, and omit the section parameter.

4 Likes

Thank you, that should do it.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.