If I use the following request, I will get a count of open tasks
If I use the following request I get all tasks, closed etc... ( which comes out as a lot more :) )
PodioTask::get_all( array($ref_type => $ref_id, 'limit' => $this->request_limit) );
In order to get a full count of all tasks, it seems I have to do the get_all call and see if there is 100 returned and if so, check if there are any more... and then count on that. I'm a little worried that it's quite a hefty request to your server for one number :)
Is there a way to get the entire count for tasks; My colleague is trying to make a migration for tasks and this number would help for batching requests into 100.
Cheers in advance!
Please sign in to leave a comment.