Created
September 27, 2019 12:21
-
-
Save iaindooley/5a8ad0c8b00c84eabc7b287b2bb37ea8 to your computer and use it in GitHub Desktop.
Add points when card archived
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 addPointsWhenCardArchived(notification) | |
{ | |
var archived = new Notification(notification).archivedCard(); | |
var current_report = new Trellinator().board("My Tracking Board") | |
.findOrCreateCard("Week "+(Trellinator.now().weekOfMonth()+1)+", "+Trellinator.now().monthName()+" "+Trellinator.now().getFullYear()); | |
current_report.setCustomFieldValue("Points Completed",current_report.customFieldValue("Points Completed")+archived.customFieldValue("Points")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment