1

Rally からユーザー ストーリー (HierarchicalRequirement) を抽出し、カスタム フィールドとリリース名に特定の値を指定して、最初に反復終了日、2 番目のパラメーターとしてユーザー ストーリー ランクで並べ替えるクエリを作成する必要があります。

動作するクエリ自体は書けますが、イテレーション終了日の順序条件がうまくいきません ※ランクの条件は単純明快:「Rank desc」)

反復終了日で並べ替えるには、SOAP API の「order」パラメーターに文字列「Iteration.EndDate desc」を渡しましたが、機能しません。

これの何が問題なのですか?

4

1 に答える 1

2

SOAPでこれを行う方法はわかりませんが、REST APIを使用すると簡単です: http://developer.rallydev.com/help/java-toolkit-rally-rest-api

 RallyRestApi restApi = new RallyRestApi(new URI("https://rally1.rallydev.com"), 
    "user@company.com", "password");

 QueryRequest stories = new QueryRequest("hierarchicalrequirement");
 stories.setFetch(new Fetch("FormattedID", "Name", "ScheduleState"));
 stories.setOrder("Iteration.EndDate DESC,Rank DESC");

 QueryResponse queryResponse = restApi.query(stories);
 if (queryResponse.wasSuccessful()) {
     for (JsonElement result : queryResponse.getResults()) {
         JsonObject story = result.getAsJsonObject();
         System.out.println(String.format("\t%s - %s: ScheduleState=%s",
             story.get("FormattedID").getAsString(),
             story.get("Name").getAsString(),
             story.get("ScheduleState").getAsString()));
     }
 }
于 2012-09-21T13:36:23.660 に答える