private void PrepareReport(ReportHelper.ReportConfig config) { // add project config.ReportObjects.Add(Project); // add risks ICollection<Risk> risks = projectsService.GetProjectRisks(Project.ProjectUId); config.ReportObjects.Add(risks); // add itens ICollection<BacklogItem> items = backlogService.GetBacklog(Project.ProjectUId, null, (short)ScrumFactory.Services.BacklogFiltersMode.ALL); foreach (BacklogItem item in items) { item.ValidPlannedHours = item.GetValidPlannedHours(); } config.ReportObjects.Add(items); // add constraints ICollection<ProjectConstraint> constraints = constraintsService.GetProjectConstraints(Project.ProjectUId); config.ReportObjects.Add(constraints); // add end date config.AddReportVar("ProjectEndDate", Project.LastSprint.EndDate); }