Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Now I can get all the task through getting work item.
C#
WorkItemStore workItemStore = teamProjectCollection.GetService<WorkItemStore>();
                     string projectName = dr["ProjectName"].ToString();

                     DateTime max = commonSvc.getMaxDate(groupId, accountName, projectName).Date;

                     WorkItemCollection workItemCollection = workItemStore.Query(
                     " SELECT * " +
                     " FROM WorkItems " +
                     " WHERE [System.TeamProject] = '" + projectName + "'  ORDER BY [System.WorkItemType], [System.Id]");


Then I can categories them by workItem type (like epic,bug, task) etc.

Now I want get task item hierarchically. I want get the backlog list then for each back I want to get tasklist. This will be looking like

1. Get a list backlog item. Then
C#
 foreach (Backlog backlog in BacklogList)
{
   GetTaskListForThisBacklog(backlog );
}



Please help me to find out task item hierarchically.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900