Created
September 10, 2020 13:03
-
-
Save iaindooley/f62327703716c8a25f7405b036e76d36 to your computer and use it in GitHub Desktop.
Confirm reply
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 confirmationReply(notification) | |
{ | |
//when a card without the green "Deposit Received" | |
//label is added to list "Accepted/ Waiting Deposit" | |
var added = new Notification(notification).addedCard("Accepted/ Waiting Deposit"); | |
try | |
{ | |
added.label("Deposit Received"); | |
} | |
catch(e) | |
{ | |
Notification.expectException(InvalidDataException,e); | |
added | |
//set due in 3 working days, | |
.setDue(Trellinator.now().addWeekDays(3)) | |
//mark the due date as incomplete, | |
.markDueDateIncomplete() | |
//move the card to the top of list "Accepted/ Waiting Deposit", | |
.moveTo("Accepted/ Waiting Deposit","top") | |
//and post comment "@reply Thank you for confirming that you would like to proceed with this job! " | |
.postComment("@reply Thank you for confirming that you would like to proceed with this job! "); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment