GET all tasks and subtasks on a project

I'm trying to get all the tasks and subtasks on a particular project using a GET request in this format:

https://www.wrike.com/api/v4/folders/{folderId}/tasks?descendants=true

where {folderId} is the folder ID of the project.

It's only pulling the top-level tasks and not the subtasks. I'm sure I'm missing something simple but I can't seem to find what it is. What do I need to do to get all the subtasks?

Thanks for the help.

0
Комментариев: 8
Spot On Innovative Approach Stellar Advice
Avatar

Hi Ryan, welcome to the Community, happy to see you here 🙂

I'm going to raise a Support ticket for you now - the team will be able to advise. You'll get a notification soon 🤝

Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa Wrike Team member Become a Wrike expert with Wrike Discover

0
Действия с комментариями Постоянная ссылка
Spot On Innovative Approach Stellar Advice
Avatar

The solution is to use

https://www.wrike.com/api/v4/folders/{folderId}/tasks?subTasks=true

2
Действия с комментариями Постоянная ссылка
Spot On Innovative Approach Stellar Advice
Avatar

What is the recommended solution for this? 

0
Действия с комментариями Постоянная ссылка
Spot On Innovative Approach Stellar Advice
Avatar

Hi Jim Bradley, welcome to the Community!

Our Advanced Support recommends to include optional parameter "subTasks=true" to your API Tasks query to include Subtasks to the response. You can check the full list of available parameters at https://developers.wrike.com/documentation/api/methods/query-tasks

Hope this helps! 

Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa Wrike Team member Become a Wrike expert with Wrike Discover

0
Действия с комментариями Постоянная ссылка
Spot On Innovative Approach Stellar Advice
Avatar

Hi Lisa,

Are there any resources showing these 'optional parameters'? The methods section of the API docs don't even cover the parameter you mentioned.

Thanks!

Daniel 

0
Действия с комментариями Постоянная ссылка
Spot On Innovative Approach Stellar Advice
Avatar

Hi Daniel Montoya, welcome to the Community! 

We'll check this and get back to you! 

Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa Wrike Team member Become a Wrike expert with Wrike Discover

1
Действия с комментариями Постоянная ссылка
Spot On Innovative Approach Stellar Advice
Avatar

Hi Daniel Montoya, I'm really sorry - looks like this slipped through the cracks. I've raised a ticket with our Support experts now, and again, sincere apologies for not getting back to you in a timely manner. Please let me know if I can help you with anything else! 

Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa Wrike Team member Become a Wrike expert with Wrike Discover

0
Действия с комментариями Постоянная ссылка
Spot On Innovative Approach Stellar Advice
Avatar

Hi Daniel Montoya,

Thank you for your question!

All of the available parameters can be found in our Developers Portal. The subTasks parameter can be found with the other task parameters here: https://developers.wrike.com/api/v4/tasks/ 

I hope this helps! Let us know if you have any questions and have a productive day 😃

Aaron K. Community Team at Wrike Wrike Product Manager Узнайте о самых популярных функциях Wrike и советах по его использованию

Aaron K. Wrike Team member Узнайте о самых популярных функциях Wrike и советах по его использованию

0
Действия с комментариями Постоянная ссылка

Folllowing List for Post: GET all tasks and subtasks on a project
[this list is visible for admins and agents only]

Вверх
Didn’t find what you were looking for? Write new post