It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Trello API - Create card with custom fields

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 

1 answer

0 votes
Garrett Atlassian Team Jan 31, 2020

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.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Trello

Develop a new Habit during Lockdown

If you had to thrive a new habit during a lockdown, what would it be? Trello

1,492 views 12 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you