I want to list all tasks (and their custom fields) assigned to each user (assignee). My loop to list all users works. But, I don't success to list their tasks (and tasks' custom fields). Indeed, the answer is null...
Where I'm wrong ? How to list tasks by assignee and get each task custom fields ?
<?php
require '../vendor/autoload.php';
$me = $client->users->me();
$users = $client->users->findByWorkspace($me->workspaces[0]->id, null, array('iterator_type' => false, 'page_size' => null))->data;
foreach($users as $user){
echo '<h2>'.$user->name.'</h2>';
// and this doesn't work :
$tasks = $client->tasks->findAll( ['assignee' => $user->id] );
var_dump($tasks);
}
Thank you very much !
Alexis