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

Query my board and return all data including custom fields

David_Pollard October 9, 2019

I am querying my trello data from a single board and using the JSON data exported in Klipfolio.  This works great except I have a custom date field on all of my cards and that date is missing from the output.

I have been reading through the help and I can't figure out how to form the url to include the custom field.

The URL at the moment is very simple.

https://api.trello.com/1/boards/587d583e78a30329158ceaec/cards?key=<KEY>&token=<TOKEN>

Reading the help I found this url 

https://api.trello.com/1/boards/587d583e78a30329158ceaec/customFields?key=<KEY>&token=<TOKEN>

That query returns this, which are the details for my custom field.

[ {
"id":"5b76685dfba0b91fe23fae1f",
"idModel":"587d583e78a30329158ceaec",
"modelType":"board",
"fieldGroup":"02bf8559d948d484fbce1efe6e29a9bd1f51e9acf00d6ea5435d4df50c737e88",
"display":{"cardFront":true},
"name":"AFSS Due",
"pos":16384,
"type":"date"
 }]

What do I need to add to the first URL query above to include the custom field data along with all the other data?

Thanks

David

1 answer

1 accepted

2 votes
Answer accepted
David_Pollard October 9, 2019

I hate it when I find my own answers.

I think this is the answer

https://api.trello.com/1/boards/587d583e78a30329158ceaec/cards/?customFieldItems=true&key=<KEY>&token=<TOKEN>

I found details in this document

https://developers.trello.com/docs/getting-started-custom-fields

It the section 

Getting customFieldItems For Cards

Hope this helps someone else.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events