diff --git a/VTSFetcher/Services/AnytypeService.cs b/VTSFetcher/Services/AnytypeService.cs index 33a9ad7..a30e915 100644 --- a/VTSFetcher/Services/AnytypeService.cs +++ b/VTSFetcher/Services/AnytypeService.cs @@ -18,6 +18,7 @@ public class AnytypeService const string VtsAssigneePropertyName = "VTS_Assignee"; const string VtsManagerPropertyName = "VTS_Manager"; const string VtsDueDatePropertyName = "VTS_Due"; + const string VtsSprintPropertyName = "VTS_Sprint"; private readonly AppSettings _appSettings; @@ -158,6 +159,9 @@ public class AnytypeService return null; pageProperty.Date = $"{issue.Due.ToString("yyyy-MM-ddT23:59:59Z")}"; break; + case VtsSprintPropertyName: + pageProperty.Text = $"{issue.Sprint}"; + break; default: break; } diff --git a/VTSFetcher/ViewModels/MainViewModel.cs b/VTSFetcher/ViewModels/MainViewModel.cs index 07fe20b..ccce9fb 100644 --- a/VTSFetcher/ViewModels/MainViewModel.cs +++ b/VTSFetcher/ViewModels/MainViewModel.cs @@ -257,6 +257,7 @@ public class MainViewModel : INotifyPropertyChanged Due = response.fields.duedate ?? new DateTime(1999, 12, 23, 23, 59, 59), Updated = response.fields.UpdatedAt, Parent = response.fields.parent?.key, + Sprint = SprintHelper.ExtractActiveSprintName(response.fields.customfield_10806), }; issue.NeedNotify = (IsNeedNotify(issue)) ? 1 : 0; _repo.UpsertVtsIssues(new List { issue }, ["Published", "ObjectId"]);