title: how to get all fields details of a workitem by wiql c# asp.net?
body: <p>bascially i hierarchy of my TFS is like this</p>
  
  <p>P1
  <br/>  ->task1
   <br/>  ->task2
    <br/>  ->task3
     <br/> ->task4
  <br/>
  p1 cantains the following fields 
  story owner,story author,assigned to,state,priorty,title
  <a href="https://i.stack.imgur.com/Bacqo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bacqo.png" alt="enter image description here"></a>
  <br/>
  and P1 cantains 4 task i want all the details of task with p1 fields(story owner,story author,assigned to,state,priorty and title). </p>
  
  <p>code for this i am not getting p1 fields with it's task details(story owner,story author,assigned to,state,priorty and title). </p>
  
  <pre><code>var tpc = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri("tfs url"));
                  WorkItemStore workItemStore = new WorkItemStore(tpc);
  
                  Query query = new Query(workItemStore, "SELECT * FROM WorkItems WHERE [System.TeamProject] = @project", new Dictionary&lt;string, string&gt;() { { "project", projectname } });
  
                  WorkItemCollection wic = query.RunQuery();
  var tpc = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri("http://apactfs.cbre.com:8080/tfs/cbre.apac.applications"));
                  WorkItemStore workItemStore = new WorkItemStore(tpc);
  
                  Query query = new Query(workItemStore, "SELECT * FROM WorkItems WHERE [System.TeamProject] = @project", new Dictionary&lt;string, string&gt;() { { "project", projectname } });
  
                  WorkItemCollection wic = query.RunQuery();
  foreach (WorkItem item in wic)
                  {
  
                      info += String.Format("{0}\n", item.Title);
                  }
  </code></pre>