we manage multiple boards for different customers and use the API to transfer data from Trello to our ERP software. This process creates a new ticket and uploads the ticket number into the custom field of Trello cards.
For some time now, we have been creating new boards and noticed that the values are not being uploaded into the custom fields. This issue only occurs in the new boards.
To investigate, I ran a test and compared it with older boards. I found that when requesting the idCustomField in the new boards, the response returns an empty value in the JSON array for custom fields. However, the custom field is already attached to both the board and the cards.
I also tried to manually enter the value, but unfortunately, that didn’t help either—I still receive an empty response.
Please use the GUI to add a value to the Ticket custom field on a new card on a new board, then make a request with the Get a Card endpoint for that card and filter the results to only customFieldItems. EG:
thanks a lot for your quick response. I followed the steps you provided and made a request to the Get a Card endpoint with customFieldItems=true. Here is the response I received:
Does it return the exact same response that tells you what the value of the Ticket custom field is? Yes or No?
If Yes, then use the GUI to remove the value of the Ticket custom field, then check that via the REST API (use either of the two GET endpoints I’ve already described) to confirm it has no value (you’ll get a 200 response and an empty array returned)
Once you are sure the field has no value, then use the Update Custom Field Item on a Card endpoint to set its value to “78901” (or something similar) Can you please provide a complete copy and paste of the exact request you send to that endpoint.
When you do that update of the field’s value via the REST API, what is the response code and body returned? Please provide a copy of that response code and body here.
When you look in the GUI, does the Ticket field on that card now have that new value? Yes or No?
If Yes to that last question, use both of the two GET endpoints to see what they say is the value of the custom field. Do they both return the new value of that custom field?