fix: correct column mapping for NTT sheet, add Task/RequestedBy/PreferredDate/Notes columns

This commit is contained in:
2026-05-07 09:17:44 +10:00
parent c9040889bf
commit 14f00458f3
+35 -9
View File
@@ -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;
}
}
}