Hello,
We’re close to finishing a bidirectional integration between our ERP system and Wrike using Webhooks and the Wrike API.
So far, we successfully handle the object hierarchy for spaces, projects, folders, and tasks. We’re now adding support for subtasks, and that’s where we’re running into some confusion.
Initially, I assumed I could rely on the parentIds field (as with folders/projects/tasks). However, for subtasks, parentIds seems to only return the root folder or container, which isn’t helpful for identifying the parent task itself.
Given a taskId that represents a subtask:
Is there a reliable way to retrieve its parent taskId via the API?
Is this relationship exposed somewhere else (e.g. a different field or endpoint), or does it require an additional API call?
Any clarification on the correct approach for resolving subtask → parent task relationships would be greatly appreciated.
Thanks!
Stephen..