Get parent task of known subtask ID?

How would I go about using the API to get the parent task of a known subtask ID? Even if the subtask was multiple levels deep, I want to get the task ID of the one that directly houses the known subtask.

Hi @FreshyJon,

If you retrieve the known subtask using the tasks endpoint GET /tasks/{subTaskId} it will return a parent property that includes the GID and name of the immediate parent. You can then use the same API call to retrieve the parent. Is that what you are looking for?

Well that was easy. Worked great. Thanks!