I have items in checklists that I would like to sort (alpha). Is there a way to do this?
This used to be possible with automation before Trello bought Butler automation. Sadly, they removed the option to do this manually or by automation from within Trello.
But...there is a way using something like Make or Zapier.
I have created the automation in Make and Trello and as you can see it works that when an item is added to the checklist, it automatically sorts it alphabetically:
I am happy to share this completely free but it has a few steps:
{
"name": "Reorder Trello Checklist",
"flow": [
{
"id": 1,
"module": "gateway:CustomWebHook",
"version": 1,
"parameters": {
"hook": 2772901,
"maxResults": 1
},
"mapper": {},
"metadata": {
"designer": {
"x": 0,
"y": 0,
"name": "Checklist item added"
},
"restore": {
"parameters": {
"hook": {
"data": {
"editable": "true"
},
"label": "Trello Checklist Sort"
}
}
},
"parameters": [
{
"name": "hook",
"type": "hook:gateway-webhook",
"label": "Webhook",
"required": true
},
{
"name": "maxResults",
"type": "number",
"label": "Maximum number of results"
}
],
"interface": [
{
"name": "checklistName",
"type": "text"
}
]
}
},
{
"id": 2,
"module": "trello:getACardChecklists",
"version": 4,
"parameters": {
"__IMTCONN__": 3475378
},
"mapper": {
"card_id": "{{1.cardId}}",
"select_or_manual": "manual"
},
"metadata": {
"designer": {
"x": 300,
"y": 0,
"name": "Get checklist item was added to"
},
"restore": {
"expect": {
"select_or_manual": {
"label": "Enter manually"
}
},
"parameters": {
"__IMTCONN__": {
"data": {
"scoped": "true",
"connection": "trello"
},
"label": "BFB Trello Demo (dreamsuitemike)"
}
}
},
"parameters": [
{
"name": "__IMTCONN__",
"type": "account:trello",
"label": "Connection",
"required": true
}
],
"expect": [
{
"name": "select_or_manual",
"type": "select",
"label": "Enter card ID",
"required": true,
"validate": {
"enum": [
"manual",
"select"
]
}
},
{
"name": "limit",
"type": "uinteger",
"label": "Limit"
},
{
"name": "card_id",
"type": "text",
"label": "Card ID",
"required": true
}
]
}
},
{
"id": 4,
"module": "builtin:BasicFeeder",
"version": 1,
"parameters": {},
"mapper": {
"array": "{{sort(2.checkItems; \"desc\"; \"name\")}}"
},
"metadata": {
"designer": {
"x": 600,
"y": 0,
"name": "Sort Checklist items"
},
"restore": {
"expect": {
"array": {
"mode": "edit"
}
}
},
"expect": [
{
"mode": "edit",
"name": "array",
"spec": [],
"type": "array",
"label": "Array"
}
]
}
},
{
"id": 3,
"module": "trello:editAChecklistItem",
"version": 4,
"parameters": {
"__IMTCONN__": 3475378
},
"mapper": {
"pos": "top",
"card_id": "{{2.idCard}}",
"idCheckItem": "{{4.id}}",
"idChecklist": "{{4.idChecklist}}",
"select_or_manual": "manual"
},
"metadata": {
"designer": {
"x": 891,
"y": -3,
"name": "Reorder checklist (ascending)"
},
"restore": {
"expect": {
"pos": {
"mode": "chose",
"label": "To the top"
},
"state": {
"mode": "chose",
"label": "Empty"
},
"select_or_manual": {
"label": "Enter manually"
}
},
"parameters": {
"__IMTCONN__": {
"data": {
"scoped": "true",
"connection": "trello"
},
"label": "BFB Trello Demo (dreamsuitemike)"
}
}
},
"parameters": [
{
"name": "__IMTCONN__",
"type": "account:trello",
"label": "Connection",
"required": true
}
],
"expect": [
{
"name": "select_or_manual",
"type": "select",
"label": "Enter a Card ID and Checklist Item ID",
"required": true,
"validate": {
"enum": [
"manual",
"select"
]
}
},
{
"name": "name",
"type": "text",
"label": "Item name"
},
{
"name": "pos",
"type": "select",
"label": "Position",
"validate": {
"enum": [
"top",
"bottom"
]
}
},
{
"name": "state",
"type": "select",
"label": "State",
"validate": {
"enum": [
"complete",
"incomplete"
]
}
},
{
"name": "card_id",
"type": "text",
"label": "Card ID",
"required": true
},
{
"name": "idCheckItem",
"type": "text",
"label": "Checklist Item ID",
"required": true
},
{
"name": "idChecklist",
"type": "text",
"label": "Checklist ID"
}
]
}
}
],
"metadata": {
"instant": true,
"version": 1,
"scenario": {
"roundtrips": 1,
"maxErrors": 3,
"autoCommit": true,
"autoCommitTriggerLast": true,
"sequential": false,
"slots": null,
"confidential": false,
"dataloss": false,
"dlq": false,
"freshVariables": false
},
"designer": {
"orphans": []
},
"zone": "eu2.make.com",
"notes": []
}
}
when an item is added to a checklist, post to url "[pasteyourmakewebhookhere]" with payload "{\"cardId\" : \"{cardidlong}\", \"checklistName\" : \"{checklistname}\"}"
I know this is pretty advanced so come back to me if you have any issues with it...Sorry it isn't simpler!!
Also, please not that there is an open suggestion on the Public suggestion board, please vote for it...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.