is there a way to get all the comments of a card through the Trello API? I can get the card, the list which it is in, the members assigned to it etc. but can't see a way to get the comments.
Thanks.
Comments are a type of action ("commentCard"), so look into the /card/:id/actions
GET /1/cards/[card id or shortlink]/actions
you'll get list of action-objects in json, each has its type, type for comment "commentCard", comment text in
object.data.text
https://trello.com/docs/api/card/index.html#get-1-cards-card-id-or-shortlink-actions
Trello.actions.get(action.id + "/data", function() {})
seems to do it for me with client.js. Hope that helps :)