Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

trello api custom labels creation

I followed the Trello API documentation for custom label but id didn't work

I'm using ruby-trello gem

  label_data = {
    'name' => "testing",
    'idBoard' => board,
    'color' => "green"
  }

  label = client.post("/labels", label_data)

the label created succesfully and I saw it in the board, but when I use the format of creating bug and pass the label id to the idLabels attr it create the card without the label.

like image 600
Kareem Hashem Avatar asked Jan 14 '15 09:01

Kareem Hashem


1 Answers

use this hack instead of the regular api

label_response = client.post("/cards/#{card.id}/idLabels",{value: label_id})
like image 50
Kareem Hashem Avatar answered Sep 25 '22 03:09

Kareem Hashem