Closed Neolot closed 3 years ago
Hi! I am trying to create a task and I am getting an error:
array_search() expects parameter 2 to be array, null given /vendor/asana/asana/src/Asana/Client.php(333)
Here is my code:
$args = array( 'name' => $this->task_data['title'], 'notes' => $this->task_data['description'], 'assignee' => $this->task_data['gid'], 'followers' => array( $this->task_data['gid'] ), 'due_on' => $this->task_data['dueon'], 'workspace' => $this->task_data['workspace'] ); if ( !empty( $this->task_data['project'] ) ) { $args['projects'] = array( $this->task_data['project'] ); } $task = $this->asana->tasks->createTask( $args );
What am I doing wrong?
Hi! I am trying to create a task and I am getting an error:
Here is my code:
What am I doing wrong?