0

下面是我的查询,我收到错误:
查询引用了一个不存在的字段。该错误是由«[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();
4

1 回答 1

0

在 ORDER By 语句中替换[Microsoft.VSTS.Common.Priorty]为。[Microsoft.VSTS.Common.Priority]

于 2018-02-16T06:46:56.297 回答