1

我希望在从这种形式的查询返回的清单对象中的每个项目上看到某种“状态”字段:

https://api.trello.com/1/checklists/[checklist_id]

# Response:

{u'checkItems': [{u'id': u'blahblahblah1',
                  u'name': u'Some checklist item',
                  u'pos': 424242,
                  u'type': u'check'},
                 {etc..}
]}

此外,似乎以下方法确实返回了状态,但仅适用于已完成的清单项目:

https://api.trello.com/1/cards/[card_id]/checkItemStates

# Response:

[{"idCheckItem":"blahblahblah1","state":"complete”},
 {“idCheckItem":"blahblahblah2","state":"complete"},
 {"idCheckItem":"blahblahblah3","state":"complete”},
 {“idCheckItem":"blahblahblah4","state":"complete"}]

那么这是否意味着必须综合多个查询的结果才能准确查看给定卡上所有检查表的状态?我很想在单个查询中获得有关卡片上所有清单(包括每个项目的状态)的所有信息。我错过了什么吗?

4

1 回答 1

1

如果将/checkItems开关添加到路径中,您将看到每个项目的状态:

/1/checklists/[checkListId]/checkitems?key=[your appKey]

回报:

[
    {"state":"complete","id":"XXX","name":"hex support","pos":16804},
    {"state":"incomplete","id":"XXX","name":"funky chars","pos":33233}
]

此后,他们也将其添加到了基本调用中(正如您所拥有的那样)。

于 2013-05-01T01:34:44.060 回答