Created
May 20, 2020 03:17
-
-
Save iaindooley/3fb1c9bb6a7dccde6163d26cf7a90b9e to your computer and use it in GitHub Desktop.
Assign member to all cards with role label
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 assignMemberToAllCardsWithRoleLabel(notification) | |
{ | |
var added = new Notification(notification).addedMemberToCard(); | |
added.card().board().cards().each(function(card) | |
{ | |
try | |
{ | |
card.label(added.card().name()); | |
card.addMember(added); | |
} | |
catch(e) | |
{ | |
Notification.expectException(InvalidDataException,e); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment