Created
June 3, 2021 22:59
-
-
Save iaindooley/379478c8c950735725efc7bd3ef8967e to your computer and use it in GitHub Desktop.
copyNewCompanyOnboardingCard
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
//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