From e004d03fb3ff3cef118c912f70266fb7d274901c Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Mon, 28 Feb 2022 14:43:50 -0500 Subject: [PATCH] new company --- Google_Scripts/Sheets>Jira.gs | 24 ++++++++----------- .../customer_templates/SCIP/_head.html.liquid | 6 +++++ .../customer_templates/SCIP/styles.css.liquid | 7 ++++++ 3 files changed, 23 insertions(+), 14 deletions(-) create mode 100644 NP_Custom_Templates/customer_templates/SCIP/_head.html.liquid create mode 100644 NP_Custom_Templates/customer_templates/SCIP/styles.css.liquid diff --git a/Google_Scripts/Sheets>Jira.gs b/Google_Scripts/Sheets>Jira.gs index e4c5e0c4..70db517d 100644 --- a/Google_Scripts/Sheets>Jira.gs +++ b/Google_Scripts/Sheets>Jira.gs @@ -36,16 +36,12 @@ function myFunction() { // Setting up data range and empty arrays const sheet = SpreadsheetApp.getActiveSheet(); - var startRow = 244; // First col of data to process - var numRows = 450; // Number of rows to process + var startRow = 1; // First col of data to process + var numRows = 1132; // Number of rows to process 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 - var col = data[i]; + for (col in dataRange) { // For a data col within the entire data range + var col = dataRange[col]; let sdr = col[0]; // Column - A let name = col[1]; // Column - B let rawDate = Utilities.formatDate(col[3], 'America/New_York', 'yyyy-MM-dd'); @@ -70,14 +66,14 @@ function myFunction() { "Quba" : "62101fe4e41f76006a6f6510", }; - if (list.includes("Norm")) { + if (list.includes("Unqork")) { var data = { "fields": { "project": { - "key": "NORMPIPE", + "key": "NPIPE", }, "issuetype": { - "id": "10268", + "id": "10071", }, "summary": list[5], "description": { @@ -99,11 +95,11 @@ function myFunction() { ], }, "customfield_10015": list[2], // Start (Meeting) Date - rawDate - "customfield_10120": [ // Campaign + "customfield_10127": [ // Campaign list[8] ], - "customfield_10122": [{"id" : sdrDict[list[0]]}], // SDR - "customfield_10121": [ // Channel + "customfield_10129": [{"id" : sdrDict[list[0]]}], // SDR + "customfield_10128": [ // Channel list[6] ], } diff --git a/NP_Custom_Templates/customer_templates/SCIP/_head.html.liquid b/NP_Custom_Templates/customer_templates/SCIP/_head.html.liquid new file mode 100644 index 00000000..630d2831 --- /dev/null +++ b/NP_Custom_Templates/customer_templates/SCIP/_head.html.liquid @@ -0,0 +1,6 @@ +{% styles default %} +{% styles colors %} +{% styles custom %} + diff --git a/NP_Custom_Templates/customer_templates/SCIP/styles.css.liquid b/NP_Custom_Templates/customer_templates/SCIP/styles.css.liquid new file mode 100644 index 00000000..f8405c4c --- /dev/null +++ b/NP_Custom_Templates/customer_templates/SCIP/styles.css.liquid @@ -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; +}