Skip to content

Instantly share code, notes, and snippets.

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/379478c8c950735725efc7bd3ef8967e to your computer and use it in GitHub Desktop.
Save iaindooley/379478c8c950735725efc7bd3ef8967e to your computer and use it in GitHub Desktop.
copyNewCompanyOnboardingCard
//when a card is created in a list ...
var created = new Notification(notification).createdCard();
//loop through all the "overview" cards
new Trellinator().board("Onboarding Overview").cards().each(function(card)
{
try
{
//copy the created card to the list of the same name in the linked board
created.copyToList(
card.cardsLinkedInAttachments().first().list(created.currentList().name()),
"top"
);
}
catch(e)
{
//ignore missing lists or missing boards
Notification.expectException(InvalidDataException,e);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment