Created
August 17, 2020 00:23
-
-
Save iaindooley/f91cbb408b788175090d17c7e92f9825 to your computer and use it in GitHub Desktop.
Append invoice number to 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 appendInvoiceNumberToCards(notification) | |
{ | |
var changed = new Notification(notification).changedListName(); | |
if(parts = /^#.+/.exec(changed.name())) | |
{ | |
changed.cards().each(function(card) | |
{ | |
card.setName(card.name()+" #"+parts[1]); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment