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 votes
Accepted answer

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 Sign up to answer
Community showcase
Published yesterday in Statuspage

194 years of downtime: looking back on incident data from 2018

Statuspage customers logged more than 194 years of collective incidents in 2018. That’s a whopping 87% increase from the  104 years logged in 2017 , and we aren’t even through December yet....

41 views 1 5
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