From 1ebec4b44ac3040cdfbb37e642472ae88e097e96 Mon Sep 17 00:00:00 2001 From: smoh Date: Thu, 25 Dec 2025 09:51:16 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=91=EC=85=80=20=EB=A6=AC=ED=8F=AC?= =?UTF-8?q?=ED=8A=B8=EC=97=90=20Sprint=20=EC=A0=95=EB=B3=B4=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/AnytypeVtsRepository.cs | 3 ++- .../Repositories/Entities/IssueWithStatus.cs | 1 + VTSFetcher/Services/ExcelExportService.cs | 24 ++++++++++--------- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/VTSFetcher/Repositories/AnytypeVtsRepository.cs b/VTSFetcher/Repositories/AnytypeVtsRepository.cs index 564a87e..006c259 100644 --- a/VTSFetcher/Repositories/AnytypeVtsRepository.cs +++ b/VTSFetcher/Repositories/AnytypeVtsRepository.cs @@ -231,7 +231,8 @@ namespace VTSFetcher.Repositories Updated = issue.Updated, PreviousStatus = status.Status, Changed = status.Changed, - Duration = status.Duration + Duration = status.Duration, + Sprint = issue.Sprint } ).ToListAsync(); diff --git a/VTSFetcher/Repositories/Entities/IssueWithStatus.cs b/VTSFetcher/Repositories/Entities/IssueWithStatus.cs index 03053a3..ab9d0c5 100644 --- a/VTSFetcher/Repositories/Entities/IssueWithStatus.cs +++ b/VTSFetcher/Repositories/Entities/IssueWithStatus.cs @@ -11,6 +11,7 @@ public class IssueWithStatus public string Manager { get; set; } public DateTimeOffset Due { get; set; } public DateTimeOffset Updated { get; set; } + public string? Sprint { get; set; } // IssueStatus 정보 public string? PreviousStatus { get; set; } diff --git a/VTSFetcher/Services/ExcelExportService.cs b/VTSFetcher/Services/ExcelExportService.cs index ebde78e..2c73b1b 100644 --- a/VTSFetcher/Services/ExcelExportService.cs +++ b/VTSFetcher/Services/ExcelExportService.cs @@ -16,14 +16,15 @@ public class ExcelExportService // 헤더 설정 worksheet.Cell(1, 1).Value = "Assignee"; - worksheet.Cell(1, 2).Value = "Key"; - worksheet.Cell(1, 3).Value = "Summary"; - worksheet.Cell(1, 4).Value = "Status"; - worksheet.Cell(1, 5).Value = "Duration"; - worksheet.Cell(1, 6).Value = "Changed"; + worksheet.Cell(1, 2).Value = "Sprint"; + worksheet.Cell(1, 3).Value = "Key"; + worksheet.Cell(1, 4).Value = "Summary"; + worksheet.Cell(1, 5).Value = "Status"; + worksheet.Cell(1, 6).Value = "Duration"; + worksheet.Cell(1, 7).Value = "Changed"; // 헤더 스타일 - var headerRange = worksheet.Range(1, 1, 1, 6); + var headerRange = worksheet.Range(1, 1, 1, 7); headerRange.Style.Font.Bold = true; headerRange.Style.Fill.BackgroundColor = XLColor.LightGray; @@ -37,11 +38,12 @@ public class ExcelExportService int row = i + 2; worksheet.Cell(row, 1).Value = issue.Assignee; - worksheet.Cell(row, 2).Value = issue.Key; - worksheet.Cell(row, 3).Value = issue.Summary; - worksheet.Cell(row, 4).Value = issue.CurrentStatus; - worksheet.Cell(row, 5).Value = issue.Duration; - worksheet.Cell(row, 6).Value = issue.Changed?.ToString("yyMMdd HH:mm:ss", CultureInfo.InvariantCulture); + worksheet.Cell(row, 2).Value = issue.Sprint; + worksheet.Cell(row, 3).Value = issue.Key; + worksheet.Cell(row, 4).Value = issue.Summary; + worksheet.Cell(row, 5).Value = issue.CurrentStatus; + worksheet.Cell(row, 6).Value = issue.Duration; + worksheet.Cell(row, 7).Value = issue.Changed?.ToString("yyMMdd HH:mm:ss", CultureInfo.InvariantCulture); } // 열 너비 자동 조정