Programing QA

Programing/Developing Questions & Answers. Focus on business application material

Get all work item match query from team foundation server

Very easy to do:

Code Snippet
  1. // connect to TFS
  2. System.Net.NetworkCredential cre = new System.Net.NetworkCredential("username", "password", "domain");
  3. TfsTeamProjectCollection tfs = new TfsTeamProjectCollection(TfsTeamProjectCollection.GetFullyQualifiedUriForName("http://myserver:8080/MyCollection"), cre);
  4.  
  5. // get the workitem store for selected collection
  6. WorkItemStore store = tfs.GetService<WorkItemStore>();
  7.  
  8. string wiqlQuery = "Select ID, Title from Issue where (State = 'Active') order by Title";
  9. WorkItemCollection l = store.Query(wiqlQuery);
  10.  
  11. foreach (WorkItem wi in l)
  12. {
  13.     // Do what ever you need.
  14. }
  • eebest8 john

    3/11/2015 1:34:59 AM |

    I?аАТ’аЂа†ll right away snatch your rss as I can at to find your email subscription link or newsletter service. Do you have any? Kindly let me understand in order that I may just subscribe. Thanks.

  • hop over to this web-site

    3/18/2015 10:12:55 AM |

    I simply want to say I am beginner to blogging and site-building and honestly savored your page. Likely I’m likely to bookmark your website . You amazingly come with impressive stories. Thank you for revealing your website.

  • seo links

    4/5/2015 6:52:31 PM |

    There are certainly a lot of details like that to take into consideration. That is a great point to bring up. I offer the thoughts above as general inspiration but clearly there are questions like the one you bring up where the most important thing will be working in honest good faith. I don?t know if best practices have emerged around things like that, but I am sure that your job is clearly identified as a fair game. Both boys and girls feel the impact of just a moment’s pleasure, for the rest of their lives.

Comments are closed