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.
use this hack instead of the regular api
label_response = client.post("/cards/#{card.id}/idLabels",{value: label_id})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With