Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Update all custom fields
var board_name = "My Board";
//////////////////////////////
var offset = 0;
new Trellinator().board(board_name).cards().each(function(card)
{
setTimeout(updateCustomFieldOnCard,offset,card);
offset += 2000;
});
function updateCustomFieldOnCard(card)
{
card.setCustomFieldValue("Card ID",TrelloApi.cardLinkRegExp().exec(card.link())[1]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment