Cards can have zero or more checklists on them.
Gets a single checklist
API Call
/GET /1/checklists/55411859be21b8ad7dcd4c78?fields=name&cards=all&card_fields=name
Trello for Wolves
const response = await trello
.checklists("55411859be21b8ad7dcd4c78")
.getChecklist({ fields: "name", cards: "all", cardFields: "name" });
Get a specific property of a checklist
API Call
/GET /1/checklists/55411859be21b8ad7dcd4c78/name
Trello for Wolves
const response = await trello
.checklists("55411859be21b8ad7dcd4c78")
.getFieldValue("name");
Gets the board associated with a checklist
API Call
/GET /1/checklists/55411859be21b8ad7dcd4c78/board
Trello for Wolves
const response = await trello
.checklists("55411859be21b8ad7dcd4c78")
.board()
.getBoard();
Gets the cards associated with a checklist
API Call
/GET /1/checklists/55411859be21b8ad7dcd4c78/cards
Trello for Wolves
const response = await trello
.checklists("55411859be21b8ad7dcd4c78")
.cards()
.getCards();
Gets the check items associated with a checklist
API Call
/GET /1/checklists/55411859be21b8ad7dcd4c78/checkItems
Trello for Wolves
const response = await trello
.checklists("55411859be21b8ad7dcd4c78")
.checkItems()
.getCheckItems();
Gets a specific check item in a checklist
API Call
/GET /1/checklists/55411859be21b8ad7dcd4c78/checkItems/f2c444c982eb19a7e5b5c423
Trello for Wolves
const response = await trello
.checklists("55411859be21b8ad7dcd4c78")
.checkItems("f2c444c982eb19a7e5b5c423")
.getCheckItem();
Update an existing checklist
API Call
/PUT /1/checklists/55411859be21b8ad7dcd4c78?name=Test
Trello for Wolves
const response = await trello
.checklists("55411859be21b8ad7dcd4c78")
.updateChecklist({ name: "Test" });
Update the name of an existing checklist
API Call
/PUT /1/checklists/55411859be21b8ad7dcd4c78/name?value=Test
Trello for Wolves
const response = await trello
.checklists("55411859be21b8ad7dcd4c78")
.updateName("Test");
Create a new checklist
API Call
/POST /1/checklists?idCard=f2c444c982eb19a7e5b5c423
Trello for Wolves
const response = await trello
.cards("f2c444c982eb19a7e5b5c423")
.checklists()
.addChecklist({
name: "Test",
pos: "top",
});
Create a new checklist check item
API Call
/POST /1/checklists/55411859be21b8ad7dcd4c78/checkItems?name=Test&pos=top&checked=true
Trello for Wolves
const response = await trello
.checklists("55411859be21b8ad7dcd4c78")
.checkItems()
.addCheckItem({
name: "Test",
pos: "top",
checked: true,
});
Delete a checklist
API Call
/DELETE /1/checklists/55411859be21b8ad7dcd4c78
Trello for Wolves
const response = await trello
.checklists("55411859be21b8ad7dcd4c78")
.deleteChecklist();
Remove an item from a checklist
API Call
/DELETE /1/checklists/55411859be21b8ad7dcd4c78/checkItems/f2c444c982eb19a7e5b5c423
Trello for Wolves
const response = await trello
.checklists("55411859be21b8ad7dcd4c78")
.checkItems("f2c444c982eb19a7e5b5c423")
.deleteCheckItem();