1

rally API でポートフォリオ アイテムのすべてのユーザー ストーリーを取得する最も簡単な方法は何ですか? 現在、API は直接の子のみを返します。
前の質問と同様に、関連するユーザー ストーリーのみを取得するような方法で API を使用してフィルター処理する方法はありますか?

4

2 に答える 2

1

Currently for performance reasons results from the WSAPI are are limited to one level of the hierarchy. Once you have the immediate children from the results from your first query you will have to loop over each one and issue a new query for its children (and so forth recursively until you have only leaf children).

Are you doing this in an app? It can be a little challenging to manage all the async callbacks and to stitch the data back together correctly but RallyDataSource should at least making the querying part simpler...

于 2012-03-08T03:52:29.380 に答える
0

1.43 API バージョンを使用して、ポートフォリオ アイテムのネストされた US を取得できます。

                    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);
于 2014-09-25T21:50:14.483 に答える