我在 TFS 中有一个这样的层次结构,其中 1 个功能可以有“N”个产品待办事项项目,单个产品产品待办事项可以有“N”个任务/错误树结构
Feature1->
PB1->
Task1,task2,task3
我的查询
string querystring = string.Format("select [System.Id], [System.Title],[Story.Author],[Story.Owner],[System.AssignedTo]," +
" [System.WorkItemType],[Microsoft.VSTS.Scheduling.StoryPoints],[Microsoft.VSTS.Common.Priority]," +
"[Microsoft.VSTS.Scheduling.Effort], [Actual.Effort.Completed]" +
",[System.State]," +
"[System.IterationPath]" +
" FROM WorkItemLinks" +
" WHERE" +
" ([Source].[System.TeamProject]='{0}'" +
" and [Source].[System.IterationPath] UNDER 'MRI_SCRUM_GIT\\Pluse Pheonix\\Sprint 1'" +
" and [Source].[System.WorkitemType]<>'' " +
")" +
" and ([System.Links.LinkType]='System.LinkTypes.Hierarchy-Forward')" +
" and ([Target].[System.WorkItemType] <> '' )" +
" ORDER BY [System.Id] " +
" mode (Recursive)", projectname);