WIQL 查询引用不存在的字段。该错误是由"[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();

按语句。

[Microsoft.VSTS.Common.Priorty]替换为 [Microsoft.VSTS.Common.Priority]

相关内容

最新更新