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

Abehssera Yohan April 8, 2017

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
Answer accepted
Oscar Triscon
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.
April 8, 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.

Abehssera Yohan April 8, 2017

Ok, thank you, I'll try that.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events