Multiple requests needed to gather information about Tasks.

  • 2
  • Question
  • Updated 11 months ago
  • Acknowledged
Would be nice if you could enhance your TaskListService1.svc, so more information is selectable and/or add GetAllTasks, GetAllProjects function.

Explanation:
To get all Tasks at once, I haven't found a better way than to use TaskListService1.svc / GetData with page 1 and pagesize 1000000. A function like GetAllClients is missing on Tasks an Projects.

Since projects know about their tasks, but tasks don't know about the project they belong to, I have to iterate over each task, sending a request to TaskSelectorService1.svc / BulkGetProjectOrTaskDetails to find out which project each task belongs to.

After that I have to send another request to TaskService1.svc / BulkGetTaskDetails to get estimatedTime and other details the TaskListService1.svc doesn't cover.
Photo of Angele, Silvan

Angele, Silvan

  • 2 Posts
  • 0 Reply Likes

Posted 11 months ago

  • 2
Photo of Aashnee Kamboj

Aashnee Kamboj, Community Moderator

  • 1446 Posts
  • 104 Reply Likes
Hi Silvan,

I have forwarded this to the concerned team and will update you with the progress 

Thanks
Aashnee
Photo of Avinash Iyer

Avinash Iyer, Official Rep

  • 21 Posts
  • 2 Reply Likes
Hi Silvan,

Is it possible for you to give me an idea of what you are trying to accomplish?
The services are designed keeping in mind the general hierarchy of projects/tasks within the system, and in general tasks are queried for specific projects and not the other way round. So, it would help me if I understand your use case to figure out the best solution.

Regards,
Avinash