Anytype 페이지에 Sprint 정보 추가.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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<VtsIssue> { issue }, ["Published", "ObjectId"]);
|
||||
|
||||
Reference in New Issue
Block a user