Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to get string value of customfield dropdown at trello

Az Zahra Syahida
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!
July 25, 2024

 

Screenshot 2024-07-26 104634.png

Which API should i choose if i want to pull the value "Inbound WA" because that is what is selected in my custom fields dropdown

2 answers

0 votes
Tymek Zapała
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 29, 2024

Hello @Az Zahra Syahida,

If the custom field type is text, you can access the text value in following way:

customField.value.text

To fetch the custom fields from api, follow the documentation

0 votes
Mutya A
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 29, 2024

Hi Az,

You can use this API endpoint to get a specific value (e.g. "Inbound WA") of an option in a custom field:
[Trello API] Get Option of Custom Field dropdown 

As you can see, the endpoint needs an idCustomFieldOption so if you do not have it, you may need to use this API first to get all the options from the custom field and all their corresponding ids:
[Trello API] Get Options of Custom Field drop down 

For all things custom field I recommend that you read this:
Getting started with Custom Fields

Also just to let you know that we do have our Trello developer community. We have a number of Trello Engineers who are active there, and they'd be happy to give some guidance for more advanced topics like these: https://community.developer.atlassian.com/c/trello

I hope this helps, but let us know if you have any questions!
----------------
If this post helps with your query, then please consider the Accept answer or Like button to help the other users find it more quickly.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events