Skip to content

Instantly share code, notes, and snippets.

// The script at https://p.trellocdn.com/card.min.js
// must already be loaded at this point
const idCard = 'CjBy4OpQ';
const api = 'https://api.trello.com/1/card';
const opts = {
fields: 'name,closed,cover,url,badges,labels',
customFields: true,
customFieldItems: true,
members: true,
<blockquote class="trello-card-compact">
<a href="https://trello.com/c/CjBy4OpQ"></a>
</blockquote>
<script src="https://p.trellocdn.com/embed.min.js"></script>
const normalizeActionType = (action) => {
const collapsable = [
'updateBoard',
'updateCard',
'updateList',
'updateChecklist'
];
if (collapsable.includes(action.type)) {
const updatedKeys = Object.keys(action.data.old);
if (updatedKeys.length > 0) {