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..

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos
3 comments

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

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

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.

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos
 
You’re absolutely correct to post here in the API and Developers forum, where our members can exchange ideas and support each other. Since there hadn’t been any replies or help yet, I suggested reaching out to the support team, as they may be able to assist more directly. Thanks for getting back and confirming, I've raised a ticket now, and you can expect our support team to get back to you shortly 👍

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

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Folllowing List for Post: How to retrieve a subtask’s parent task using the Wrike API
[this list is visible for admins and agents only]

Top

Upcoming Live Sessions

Didn’t find what you were looking for? Write new post