Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created September 10, 2020 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/f62327703716c8a25f7405b036e76d36 to your computer and use it in GitHub Desktop.
Save iaindooley/f62327703716c8a25f7405b036e76d36 to your computer and use it in GitHub Desktop.
Confirm reply
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