我正在使用回溯 API,这是我的代码:
LookbackQuery query = this.lookback.newSnapshotQuery();
query.addFindClause("_TypeHierarchy", "PortfolioItem/Feature");
query.addFindClause("_ItemHierarchy", new BigInteger(workProductObjectID));
//here the workProductObjectID is the string representation of objectID of the user story.
//I am trying to look for the feature in that story's hierarchy.
query.requireFields("FormattedID","Name","ObjectID");
LookbackResult result = query.execute();
返回的 totalResultCount 为 0,但我可以看到该故事确实具有分配的功能。当我删除“_ItemHierarchy”约束时,我得到了所有功能。