我在Rally中有一個用戶故事,該故事具有作為父項設置的功能。我想通過Java API將父工件更新為另一個用戶故事。但是我這樣做時遇到驗證錯誤,即Validation error: HierarchicalRequirement.parentArtifact should not be set if HierarchicalRequirement.Parent is set and vice versa我添加了以下屬性以包含在中UpdateRequest:JsonObject obj = new JsonObject();jsonObject.addProperty("Parent", "<Parent User story ref>");UpdateRequest updateRequest = new UpdateRequest("<Child User story ref>", obj);UpdateResponse updateResponse = rallyApi.update(updateRequest); 如何覆蓋此驗證,任何人都可以幫忙嗎?
1 回答

慕沐林林
TA貢獻2016條經驗 獲得超9個贊
用戶故事不能同時具有投資組合項目父項和故事父項。只需將PortfolioItem字段設置為null,就可以了。您可能還需要確保正確設置了新父故事上的PortfolioItem字段,以便您的匯總仍能按預期工作。
jsonObject.addProperty("PortfolioItem", null);
添加回答
舉報
0/150
提交
取消