Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I set the value of Trello card's text Custom Field when it has no value using API

Brent Morrison
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 22, 2018

Hello,

I am trying to set the value of a text custom field on a newly created card or when creating a card with the API. So the card is being made with the API and I dont see a way to add the custom field values when I make the card. I have tried to Get customFieldItems after the card is made but that just returns a empty object until I go to the UI into said card and set the fields value. Is there a way to set the value for Custom Fields on a card without changing it in the UI first?

 

1 answer

0 votes
Teddy
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 24, 2018

Hi Brent!

 

You can add a value for a Custom Field that does not have a value in the same way that you can for a card that already has a value.

 

To do so, you will first need to create the card, and then once the card is created you can use the route here, along with the ID for the newly created card, to add a value to the specified Custom Field on that card: https://developers.trello.com/v1.0/reference#setting-custom-field-values-on-cards 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events