Created
October 8, 2020 22:44
-
-
Save iaindooley/7372f6bd7c8106392e3f27487b719f64 to your computer and use it in GitHub Desktop.
Import from Spreadsheet
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 importFromSpreadsheet() | |
{ | |
var vals = SpreadsheetApp.openByUrl("your sheet").getSheets()[0].getDataRange().getValues(); | |
var target_list = new Trellinator().board("Your Board").list("Inbox"); | |
for(var i = 0;i < vals.length;i++) | |
{ | |
Card.create(target_list,{name: vals[i][0],desc: vals[i][1]}) | |
.setDue(new Date(vals[i][2])) | |
.setCustomFieldValue("Company Name",vals[i][3]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment