Which checkItems from Trello's website goes with which ID from Trello's API

Hello,

I'm developping an extension for Trello, but I can't find a way to know which ".checklist-item" goes with which ID in the API. The only thing I can think of is using trello.com/[TrellocardURL].json, as documented here, but as you can see on this picture :

Screenshot.png

the order of the checkItems in the API's is not the same as the one of ".checklist-item" elements in the DOM. 

Since IDs are not embedded in the DOM of Trello's website, this seems impossible.

Please let me know if there's any solution to this, thank you.

1 answer

1 accepted

0 vote
Oscar Triscon Community Champion Apr 08, 2017

CheckItems are returned in order of creation. The actual order of the items is given by the pos field. Just sort the checkitems by this field to match the UI.

Ok, thank you, I'll try that.

Suggest an answer

Log in or Join to answer
Community showcase
Bridget Sauer
Published Feb 02, 2018 in Trello

Atlassian User Groups: Trello edition

You’re invited to our first ever Trello User Groups   Good news for current and aspiring Trello enthusiasts! We’re launching Trello User Groups so that you can network, share ideas, solve ...

1,218 views 8 10
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot