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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Wednesday in Trello

Get inspired with Trello & earn free Gold

A blank Trello board can be both a beautiful and intimidating thing. How many lists should I have? Is creating 10 labels overkill? How can I best track my progress? Is there a way...

59 views 0 4
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