Forums Mingle API

Accessing comments?#666

Subscribe to Accessing comments? 2 post(s), 2 voice(s)

 
Avatar amanking 9 post(s) #1714

Is there a way to access a card’s comments via the API?

card[comment] can be used to add a new comment to the card but comments are not returned in the response when a card is fetched.

 
Avatar LiXiao Administrator 21 post(s) #1728

Hi amanking,
It’s a little tricky to get the card comment. Once you add a comment into current version of card, it becomes a version in history.
For example, I created a card version 1. Then I added a comment into card version 1. What I get from the response is a new version card(version 2) which doesn’t have any comment yet. You can get the comment added by getting the card version 1.

To get an old version of card, you need specify a param named version (not card[version]) with an version number, e.g. version=1. It is same with the URL param showed in browser when you are viewing an old card version in Mingle.

Forums Mingle API