Esempio n. 1
0
        public IEnumerable<TfsItem> GetTasksByQueryId(string queryId)
        {
            TfsProjects tp = new TfsProjects(ProjectHelper.TfsContext);
            TfsQueries _query = new TfsQueries(tp);

            return _query.ExecuteQuery(new Guid(queryId));
        }
Esempio n. 2
0
        private static IEnumerable<TfsItem> GetTfsTasks()
        {
            TfsProjects tp = new TfsProjects(new TfsConfigurationContext());
            TfsQueries query = new TfsQueries(tp);
            var tasks = query.ExecuteQuery(new Guid("528b8489-8649-4324-bc66-cbf8d1ea84a7"));

            return tasks;

        }
        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);
        }
Esempio n. 4
0
 public TfsQueries(TfsProjects teamProject)
 {
     TeamProject = teamProject;
 }
Esempio n. 5
0
 public TfsQueries(TfsProjects teamProject)
 {
     TeamProject = teamProject;
 }
Esempio n. 6
0
 private QueryHelper()
 {
     _tfsProject = new TfsProjects(ProjectHelper.TfsContext);
     _query = new TfsQueries(_tfsProject);
 }