WIQL 查询引用了一个不存在的字段。错误是由 «[Microsoft.VSTS.Common.Priorty]» 引起的。
WIQL The query references a field that does not exist. The error is caused by «[Microsoft.VSTS.Common.Priorty]».'
下面是我的查询,我收到错误:
查询引用了一个不存在的字段。错误是由«[Microsoft.VSTS.Common.Priorty]»引起的。'
string querystring = string.Format("select [System.Id], [System.WorkItemType]," +
" [System.Title],[System.State],[System.AssignedTo]," +
"[Microsoft.VSTS.Scheduling.StoryPoints]," +
"[Microsoft.VSTS.Common.Priority],[System.IterationPath]" +
" FROM WorkItemLinks" +
" WHERE" +
" ([Source].[System.TeamProject]='{0}'" +
" and [Source].[System.IterationPath]='MRI_SCRUM_GIT\Pluse Pheonix\Sprint 1'" +
" and (Source.[System.WorkitemType]='User Story' " +
" or [Source].[System.WorkitemType]='Task'))" +
" and [System.Links.LinkType]='System.LinkTypes.Hierarchy-Forward'" +
" and [Target].[System.WorkItemType] <> '' " +
" ORDER BY [Microsoft.VSTS.Common.StackRank]," +
" [Microsoft.VSTS.Common.Priorty]" +
" mode (Recursive)", projectname);
Query treequery = new Query(workItemStore, querystring);
WorkItemLinkInfo[] links = treequery.RunLinkQuery();
将 ORDER By 语句中的 [Microsoft.VSTS.Common.Priorty]
替换为 [Microsoft.VSTS.Common.Priority]
。
下面是我的查询,我收到错误:
查询引用了一个不存在的字段。错误是由«[Microsoft.VSTS.Common.Priorty]»引起的。'
string querystring = string.Format("select [System.Id], [System.WorkItemType]," +
" [System.Title],[System.State],[System.AssignedTo]," +
"[Microsoft.VSTS.Scheduling.StoryPoints]," +
"[Microsoft.VSTS.Common.Priority],[System.IterationPath]" +
" FROM WorkItemLinks" +
" WHERE" +
" ([Source].[System.TeamProject]='{0}'" +
" and [Source].[System.IterationPath]='MRI_SCRUM_GIT\Pluse Pheonix\Sprint 1'" +
" and (Source.[System.WorkitemType]='User Story' " +
" or [Source].[System.WorkitemType]='Task'))" +
" and [System.Links.LinkType]='System.LinkTypes.Hierarchy-Forward'" +
" and [Target].[System.WorkItemType] <> '' " +
" ORDER BY [Microsoft.VSTS.Common.StackRank]," +
" [Microsoft.VSTS.Common.Priorty]" +
" mode (Recursive)", projectname);
Query treequery = new Query(workItemStore, querystring);
WorkItemLinkInfo[] links = treequery.RunLinkQuery();
将 ORDER By 语句中的 [Microsoft.VSTS.Common.Priorty]
替换为 [Microsoft.VSTS.Common.Priority]
。