Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. function copyCardIfNotDuplicated(notification)
  2. {
  3. var added = new Notification(notification).addedCard("List 1");
  4.  
  5. try
  6. {
  7. added.board().list("List 2").card(added.name());
  8. }
  9.  
  10. catch(e)
  11. {
  12. Notification.expectException(InvalidDataException,e);
  13. added.copyTo("List 2");
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement