public override void Initialize() { targetProject = HPMUtilities.FindProject(targetProjectName); if (targetProject == null) throw new ArgumentException("Could not find project:" + targetProjectName); if (targetViewType == EHPMReportViewType.AgileBacklog) targetProjectView = targetProject.ProductBacklog; else if (targetViewType == EHPMReportViewType.AllBugsInProject) targetProjectView = targetProject.BugTracker; else targetProjectView = targetProject.Schedule; sourceProject = HPMUtilities.FindProject(sourceProjectName); if (sourceProject == null) throw new ArgumentException("Could not find project:" + sourceProjectName); if (sourceViewType == EHPMReportViewType.AgileBacklog) sourceProjectView = sourceProject.ProductBacklog; else if (targetViewType == EHPMReportViewType.AllBugsInProject) sourceProjectView = sourceProject.BugTracker; else sourceProjectView = sourceProject.Schedule; for (int i = 0; i < columnMappings.Count; i += 1 ) { ColumnMapping colDef = columnMappings[i]; if (colDef.SourceColumn.IsCustomColumn) colDef.SourceColumn.CustomColumn = ResolveCustomColumn(sourceProjectView, colDef.SourceColumn); if (colDef.TargetColumn.IsCustomColumn) colDef.TargetColumn.CustomColumn = ResolveCustomColumn(targetProjectView, colDef.TargetColumn); } DoUpdate(); }
public override void Initialize() { project = HPMUtilities.FindProject(projectName); if (project == null) throw new ArgumentException("Could not find project:" + projectName); if (viewType == EHPMReportViewType.AgileBacklog) projectView = project.ProductBacklog; else if (viewType == EHPMReportViewType.AllBugsInProject) projectView = project.BugTracker; foreach (ColumnDefault columnDefault in columnDefaults) columnDefault.Initialize(projectView); }
public override void Initialize() { project = HPMUtilities.FindProject(projectName); if (project == null) throw new ArgumentException("Could not find project:" + projectName); if (viewType == EHPMReportViewType.AgileBacklog) projectView = project.ProductBacklog; else projectView = project.Schedule; rankColumn = projectView.GetCustomColumn(columnName); if (rankColumn == null) throw new ArgumentException("Could not find custom column:" + columnName); DoRenumber(projectView, 1, ""); }