Added two new talkspace scripts

This commit is contained in:
Norm Rasmussen
2023-05-08 12:12:31 -04:00
parent 18a266746b
commit 29fee835f4
8 changed files with 520 additions and 24 deletions

View File

@ -5,26 +5,15 @@ Campaign = customfield_10120
SDR = customfield_10122
Start Date = customfield_10015
Users:
Travis Nardin = 5d9cb42c0265ca0db955b965
Dan Peski = 603318815ddf020069969cad
Norm Rasmussen = 6092af20d353800068863d15
Michael Valido = 61fbf60cd8d7cf006a90941c
Jon Newfield = 6092af212c2f6c0068ec92c4
Isabel Katz = 620145241fec260068c107e5
Charles McGovern = 5eaaf1c4021ae30ba8fcb184
Nick Zuppe = 60eddda64257a90070aeebef
Doug Goldsmith = 61294a4845f753006951a590
Nick Appleby = 6183eab7892c420072f9c437
Quba Williams-Wilfong = 62101fe4e41f76006a6f6510
Prior to making this publicly available, I added a commented list of users & their account numbers.
Without accounts: Adan, Drew
*/
function myFunction() {
var URL = "https://northpass.atlassian.net/rest/api/3/issue/";
var token = "2NrKYv22TLWnxTo7EhU3633E";
var user = "nrasmussen@northpass.com";
var URL = "https://your_company.atlassian.net/rest/api/3/issue/";
var token = "api_toke_goes_here";
var user = "user@company.com";
var UserCredentials = Utilities.base64Encode(user + ":" + token);
// Setting up data range and empty arrays
@ -48,15 +37,15 @@ function myFunction() {
let list = [sdr, name, rawDate, bookingDate, meetingDate, company, channel, result, campaign, info];
let sdrDict = {
"Mike" :
"61fbf60cd8d7cf006a90941c",
"account_num_goes_here",
"Nick" :
"60eddda64257a90070aeebef",
"account_num_goes_here",
"Appleby" :
"6183eab7892c420072f9c437",
"Doug" :
"61294a4845f753006951a590",
"account_num_goes_here",
"Doug" :
"account_num_goes_here",
"Quba" :
"62101fe4e41f76006a6f6510",
"account_num_goes_here",
};
if (list.includes("Norm")) {
var data = {
@ -116,4 +105,4 @@ function myFunction() {
//Logger.log(respCode);
}
}
};
};