This operation retrieves a list of subtasks for a task. Use it when a script needs to inspect child tasks associated with a specific task.
The base request is:
getSubtasks(taskId, maxItems, skipCount, sort)
Use getSubtasks(...) to retrieve the subtasks associated with the specified task. You can optionally specify paging and sorting parameters.
The following example retrieves up to 25 subtasks:
variables.subtasks =
new RuntimeTaskService()
.getSubtasks(
variables.taskId,
25,
0,
null
);
The operation has the following signature:
RuntimeTaskService.getSubtasks(
taskId: string,
maxItems?: number,
skipCount?: number,
sort?: string
)