Create custom trello shortcuts api

I followed the Trello API documentation for the custom label, but id did not work.

I use ruby-trello gem

label_data = { 'name' => "testing", 'idBoard' => board, 'color' => "green" } label = client.post("/labels", label_data) 

the shortcut was created successfully, and I saw it on the board, but when I use the error creation format and pass the idLabels attr tag identifier, create a map without a tag.

+5
source share
1 answer

use this hack instead of the usual api

 label_response = client.post("/cards/#{card.id}/idLabels",{value: label_id}) 
+5
source

Source: https://habr.com/ru/post/1211062/


All Articles