Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function copyCardIfNotDuplicated(notification)
- {
- var added = new Notification(notification).addedCard("List 1");
- try
- {
- added.board().list("List 2").card(added.name());
- }
- catch(e)
- {
- Notification.expectException(InvalidDataException,e);
- added.copyTo("List 2");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement