From 14f00458f38b0b44d40bf54ae55e2949b56c942c Mon Sep 17 00:00:00 2001 From: jessikitty Date: Thu, 7 May 2026 09:17:44 +1000 Subject: [PATCH] fix: correct column mapping for NTT sheet, add Task/RequestedBy/PreferredDate/Notes columns --- Models/ServiceTrackerConfig.cs | 44 +++++++++++++++++++++++++++------- 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/Models/ServiceTrackerConfig.cs b/Models/ServiceTrackerConfig.cs index a7c9c83..d11fdb3 100644 --- a/Models/ServiceTrackerConfig.cs +++ b/Models/ServiceTrackerConfig.cs @@ -70,13 +70,22 @@ namespace Disco.Plugins.ServiceTracker.Models GoogleSheet = new GoogleSheetConfig { Enabled = false, - SpreadsheetId = "1w9rVblDVyDMVedjx9tjuLoNv1w6_pfo8GC6R9uu8lXc", + SpreadsheetId = "2PACX-1vRk8cvcK9km_coqRfVMADOBqQWMg2sn6kk2c2qj20Eg8SShtFTRhLUXoBbQGSMMwxC3HyUKqYkPNrTj", GId = "170394795", RefreshMinutes = 15, - ColTimestamp = 0, ColEmail = 1, ColDeviceName = 2, - ColLocation = 3, ColIssue = 4, ColPriority = 5, - ColStatus = 6, ColAssignedTo = 7, - HeaderRows = 1 + HeaderRows = 1, + ColTimestamp = 0, + ColEmail = 1, + ColTask = 2, + ColIssue = 3, + ColLocation = 4, + ColRequestedBy = 5, + ColPriority = 6, + ColPreferredDate = 7, + ColAssignedTo = 8, + ColStatus = 9, + ColCompletionDate = 10, + ColNotes = 11 } }; } @@ -107,20 +116,37 @@ namespace Disco.Plugins.ServiceTracker.Models public string SpreadsheetId { get; set; } public string GId { get; set; } public int RefreshMinutes { get; set; } + public int HeaderRows { get; set; } public int ColTimestamp { get; set; } public int ColEmail { get; set; } - public int ColDeviceName { get; set; } - public int ColLocation { get; set; } + public int ColTask { get; set; } public int ColIssue { get; set; } + public int ColLocation { get; set; } + public int ColRequestedBy { get; set; } public int ColPriority { get; set; } - public int ColStatus { get; set; } + public int ColPreferredDate { get; set; } public int ColAssignedTo { get; set; } - public int HeaderRows { get; set; } + public int ColStatus { get; set; } + public int ColCompletionDate { get; set; } + public int ColNotes { get; set; } + + // Legacy compat + public int ColDeviceName { get { return ColTask; } set { ColTask = value; } } public GoogleSheetConfig() { RefreshMinutes = 15; HeaderRows = 1; + ColTask = 2; + ColIssue = 3; + ColLocation = 4; + ColRequestedBy = 5; + ColPriority = 6; + ColPreferredDate = 7; + ColAssignedTo = 8; + ColStatus = 9; + ColCompletionDate = 10; + ColNotes = 11; } } }