public IEnumerable<TfsItem> GetTasksByQueryId(string queryId) { TfsProjects tp = new TfsProjects(ProjectHelper.TfsContext); TfsQueries _query = new TfsQueries(tp); return _query.ExecuteQuery(new Guid(queryId)); }
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; }