How to retrieve a subtask’s parent task using the Wrike API
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..
Hi Stephen Remillard 👋 thanks for posting! While we wait for our Community members to respond, you can get in touch with our Support Team, as one of our API experts may be able to help further. Let me know if you’d like me to raise a ticket on your behalf.
Rohan V Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover
Rohan V Wrike Team member Become a Wrike expert with Wrike Discover
Hello Rohan, thanks for your quick answer.
I never know if API related questions are more appropriate as a "support ticket" or a question in the community forums.
Yes please, raise a ticket if you think it is where the question should be asked.
Regards,
Stephen.
Rohan V Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover
Rohan V Wrike Team member Become a Wrike expert with Wrike Discover