I’m using the gform_trello_card filter to attempt to set labels based on what has been submitted on the form, but it’s really not working as expected.
The customer has lots of labels set up “inactive, active, overweight” etc. and would like them set on the Trello card when it’s created.
These labels appear in the feed set up and if you check them appear by default on the card.
If you log the $feed object in the filter, you get loads of the labels in the feed[meta][cardLabels] array, but they are all IDs or something, e.g. :
[cardLabels] => Array
(
[66ae4cebe7980fb03f8e9d48] => 0
[66ae4cebe7980fb03f8e9b28] => 0
[66ae4cebe7980fb03f8e9b44] => 0…
If you attempt to change the $feed[meta][cardLabels] array in the filter, it does nothing. (not unexpected to be honest as this seems like something that would be static for the whole feed?)
You can add a single label via $card[‘labels’] BUT only by putting the color in, not the title, which is fairly useless as color isn’t unique in labels (This client has about 10 of each color!)
You can’t use the title in the $card[[‘labels’] bit, or that ID that was exposed in the feedmeta.
Does this functionality not really work in the way I’d like? Or am I misunderstanding something?