Hi there.
I have a form that when submitting it will create a task in a project in Asana.
I want this to be able to create the task under the section “billing” in the project called “work”.
Right now I create a task doing it like this:
curl_setopt_array($curl, array(
CURLOPT_URL => ‘https://app.asana.com/api/1.0/tasks’,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => ‘’,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => ‘POST’,
CURLOPT_POSTFIELDS => array(‘name’ => $orderNumber . ’ - ’ . $clientName . ’ - ’ . $clientId, ‘projects’ => ‘1202451678035938’, ‘notes’ => ‘’ . $manus . ‘’, ‘assignee’ => ‘1198834232038500’,),
CURLOPT_HTTPHEADER => array(
‘',
'’
),
));
How do I get this task to be created in that project, but under a specific section ?
I have different options in my form that should make this be put under the correct section in the project.