Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created August 17, 2020 00:23
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/f91cbb408b788175090d17c7e92f9825 to your computer and use it in GitHub Desktop.
Save iaindooley/f91cbb408b788175090d17c7e92f9825 to your computer and use it in GitHub Desktop.
Append invoice number to cards
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