我通过Rest api 2.0创建故事和缺陷。我想将相对等级设置为低于已经优先考虑的其他现有项目。这可以通过SDK实现,Java Rest 2.0中的等效方法是什么?
来自App SDK的:
Rally.data.Ranker.rankRelative({
recordToRank: recordToRank,
relativeRecord: relativeRecord,
position: 'after'
});
答案 0 :(得分:0)
您只需在请求中设置rankAbove或rankBelow参数:
JsonObject defectToRerank = new JsonObject();
UpdateRequest updateRequest = new UpdateRequest("/defect/12345", defectToRerank);
updateRequest.addParam("rankAbove", "/defect/34567");
UpdateResponse updateResponse = restApi.update(updateRequest);