Created
September 12, 2020 12:50
-
-
Save iaindooley/85f9fc50fb639320e2d6c0d6442591af to your computer and use it in GitHub Desktop.
Increment allowed visits
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 incrementAllowedVisits(params,signature,original_time) | |
{ | |
new Board(params).cards().each(function(card) | |
{ | |
var existing = card.customFieldValue("Allowed Visits"); | |
var incremented = existing ? existing+1 : 1; | |
card.setCustomFieldValue("Allowed Visits",incremented); | |
Utilities.sleep(2000); | |
}); | |
ExecutionQueue.push("incrementAllowedVisits",params,signature,original_time.addMonths(1)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment