private void BurndownConfig(ReportHelper.ReportConfig config, ScrumFactory.Project project) { var leftHoursByDay = backlogService.GetBurndownHoursByDay(project.ProjectUId, project.Baseline.ToString()); if (leftHoursByDay == null) { return; } var burndownVM = new BurnDownViewModel(); burndownVM.ActualHours = leftHoursByDay.Where(h => h.LeftHoursMetric == LeftHoursMetrics.LEFT_HOURS).ToArray(); burndownVM.ActualHoursAhead = leftHoursByDay.Where(h => h.LeftHoursMetric == LeftHoursMetrics.LEFT_HOURS_AHEAD).ToArray(); burndownVM.PlannedHours = leftHoursByDay.Where(h => h.LeftHoursMetric == LeftHoursMetrics.PLANNING).ToArray(); config.ReportViewModels.Add("burndown", burndownVM); }
private void BurndownConfig(ReportHelper.ReportConfig config, ScrumFactory.Project project) { var leftHoursByDay = backlogService.GetBurndownHoursByDay(project.ProjectUId, project.CurrentPlanningNumber.ToString()); if (leftHoursByDay == null) return; var burndownVM = new BurnDownViewModel(); burndownVM.ActualHours = leftHoursByDay.Where(h => h.LeftHoursMetric == LeftHoursMetrics.LEFT_HOURS).ToArray(); burndownVM.ActualHoursAhead = leftHoursByDay.Where(h => h.LeftHoursMetric == LeftHoursMetrics.LEFT_HOURS_AHEAD).ToArray(); burndownVM.PlannedHours = leftHoursByDay.Where(h => h.LeftHoursMetric == LeftHoursMetrics.PLANNING).ToArray(); config.ReportViewModels.Add("burndown", burndownVM); }