Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created February 18, 2021 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/a97f8eeca4e398d8177a6e25651ee3ff to your computer and use it in GitHub Desktop.
Save iaindooley/a97f8eeca4e398d8177a6e25651ee3ff to your computer and use it in GitHub Desktop.
Set custom field on all cards
function setCustomFieldOnAllCards(notification)
{
var added = new Notification(notification).addedLabel("Set Job Number");
added.card().board().cards().each(function(card)
{
if(card.id() != added.card().id())
{
card.setCustomFieldValue("Job #",added.card().customFieldValue("Job #"));
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment