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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Query my board and return all data including custom fields

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

1 vote
Answer accepted

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
Community showcase
Published in Trello

Develop a new Habit during Lockdown

If you had to thrive a new habit during a lockdown, what would it be? Trello

1,661 views 16 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you