Hello, i`m trying to find a solution, how i can create Trello card with 3 custom fields. For now my card is creating, but only with name and labels, and no other info is inserted in Custom fields.
I need to request phone number, email and date.
$ch = curl_init( $url );
$request = json_encode( array( "name"=> $card_name, "labels" => "red, blue", "*here is my custom field`s ID*" => array( "idModel" => $idmodel, 'value' => array ( 'text' => 'test@test.tst') ), "*here is my custom field`s ID*" => array( "idModel" => $idmodel, 'value' => array ( 'number' => '11111') ) ) );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $request );
curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));
$result = curl_exec($ch);
curl_close($ch);
In
Hey Sergejs, I'd really recommend posting this over in our developer community: https://community.developer.atlassian.com/c/trello
Our engineers keep an eye out there, and they or any champions would be happy to help you out with that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.