Created
February 18, 2021 05:26
-
-
Save iaindooley/a97f8eeca4e398d8177a6e25651ee3ff to your computer and use it in GitHub Desktop.
Set custom field on all cards
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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