public IEnumerable <TfsIteration> GetIterations(out string currentIteration) { var settings = _tfsProject.GetTeamSettings(); currentIteration = settings.CurrentIterationPath; var iterationList = from iteration in settings.IterationPaths orderby iteration select new TfsIteration { Name = iteration, Path = iteration, StartDate = _tfsProject.GetIteration(iteration).StartDate, FinishDate = _tfsProject.GetIteration(iteration).FinishDate }; return(iterationList); }
public ActionResult UnplannedTasks(string iterationPath) { string currentIteration; var iterations = QueryHelper.Instance.GetIterations(out currentIteration); iterationPath = iterationPath ?? currentIteration; TfsProjects ttp = new TfsProjects(ProjectHelper.TfsContext); var iteration = ttp.GetIteration(iterationPath); // Get the tasks that were added after the start of the sprint. IEnumerable <TfsItem> tasks = QueryHelper.Instance.GetTasks(iterationPath). Where(t => t.CreatedDate.AddDays(-1) > iteration.StartDate && t.CreatedDate < iteration.FinishDate); ViewBag.IterationList = new SelectList(iterations, "Name", "Path", iterationPath); return(View(tasks)); }
private static void ListIteration() { TfsProjects ttp = new TfsProjects(new TfsConfigurationContext()); var x = ttp.GetIteration(ProjectName + @"\Sprint 3"); }