new company

This commit is contained in:
Norm Rasmussen
2022-02-28 14:43:50 -05:00
parent ec57068f6c
commit e004d03fb3
3 changed files with 23 additions and 14 deletions

View File

@ -36,16 +36,12 @@ function myFunction() {
// Setting up data range and empty arrays // Setting up data range and empty arrays
const sheet = SpreadsheetApp.getActiveSheet(); const sheet = SpreadsheetApp.getActiveSheet();
var startRow = 244; // First col of data to process var startRow = 1; // First col of data to process
var numRows = 450; // Number of rows to process var numRows = 1132; // Number of rows to process
var dataRange = sheet.getRange(startRow, 1, numRows, sheet.getLastColumn()).getValues(); var dataRange = sheet.getRange(startRow, 1, numRows, sheet.getLastColumn()).getValues();
var data = dataRange.filter(function(r){
return r.join("").length>0;
});
var sdr = "";
for (i in data) { // For a data col within the entire data range for (col in dataRange) { // For a data col within the entire data range
var col = data[i]; var col = dataRange[col];
let sdr = col[0]; // Column - A let sdr = col[0]; // Column - A
let name = col[1]; // Column - B let name = col[1]; // Column - B
let rawDate = Utilities.formatDate(col[3], 'America/New_York', 'yyyy-MM-dd'); let rawDate = Utilities.formatDate(col[3], 'America/New_York', 'yyyy-MM-dd');
@ -70,14 +66,14 @@ function myFunction() {
"Quba" : "Quba" :
"62101fe4e41f76006a6f6510", "62101fe4e41f76006a6f6510",
}; };
if (list.includes("Norm")) { if (list.includes("Unqork")) {
var data = { var data = {
"fields": { "fields": {
"project": { "project": {
"key": "NORMPIPE", "key": "NPIPE",
}, },
"issuetype": { "issuetype": {
"id": "10268", "id": "10071",
}, },
"summary": list[5], "summary": list[5],
"description": { "description": {
@ -99,11 +95,11 @@ function myFunction() {
], ],
}, },
"customfield_10015": list[2], // Start (Meeting) Date - rawDate "customfield_10015": list[2], // Start (Meeting) Date - rawDate
"customfield_10120": [ // Campaign "customfield_10127": [ // Campaign
list[8] list[8]
], ],
"customfield_10122": [{"id" : sdrDict[list[0]]}], // SDR "customfield_10129": [{"id" : sdrDict[list[0]]}], // SDR
"customfield_10121": [ // Channel "customfield_10128": [ // Channel
list[6] list[6]
], ],
} }

View File

@ -0,0 +1,6 @@
{% styles default %}
{% styles colors %}
{% styles custom %}
<style>
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap');
</style>

View File

@ -0,0 +1,7 @@
@font-face {
font-family: 'Lato' !important;
src: url('https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap');
}
body, html, div {
font-family: 'Lato' !important;
}