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

This widget could not be displayed.
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 Sign up to answer
Community showcase
Published Sep 11, 2018 in Trello

There’s a Power-up for That!

So you’re using Trello at work, at home and to track your new DIY crafts. The family and co-workers are all on board and everything is organized, color coded and has a due date. But still, there’s so...

270 views 1 3
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