题
将所有用户故事用于集会API中的投资组合项的所有用户故事是什么?现在,API只返回即时儿童。
<突出>类似于上一个问题,有没有办法过滤使用API以获得相关的用户故事?
解决方案
目前出于性能原因,WSAPI的结果仅限于层次结构的一个级别。一旦您的第一个查询中的结果,您将不得不循环每一个,并为其孩子们发出新查询(递归,直到您只有叶子儿童)。
你是在一个应用程序中的吗?管理所有异步回调并正确拼接数据并正确地拼回数据,但rallydataSource至少应该使查询部分更简单...
其他提示
我能够使用以下操作:1.43 API版本获取投资组合项目的嵌套
queryFeat = "((PortfolioItemType.Ordinal = 0) and " + "(Release.Name != " + "\"" + selectedRelease + "\"))";
console.log("queryfeat",queryFeat);
queryArrayFeat[0] = {
key: CARD_TYPE,
type: 'PortfolioItem',
query: queryFeat,
fetch: 'Rank,FormattedID,Name,Release,Parent,GroomingState,LeafStoryCount,PercentDoneByStoryCount,LeafStoryPlanEstimateTotal,PercentDoneByStoryPlanEstimate,Project,Tags,ObjectID,Description,UserName,Children,Ready,Architect,SolutionTestArchitect,UserStories,Pipeline,PlanEstimate,SizeConfidence,Rank,Ready,Owner,Blocked,blockedReason,Release,Iteration,ScheduleState,ExecutionOrder,DoRCriteria,AffectsDocumentationTeam,HCSRoadmapItem,TopDownGroomAllUSCreated,State',
order: 'Rank'
};
queryArrayFeat[1] = {
key: 'users',
type: 'users',
fetch: 'UserName,ObjectID,DisplayName'
};
rallyDataSource.setApiVersion("1.43");
rallyDataSource.findAll(queryArrayFeat, displayCards);
console.log("Query Results:",queryArrayFeat);
. 不隶属于 StackOverflow