0

如何创建用户故事和映射现有功能 ID。下面是我的代码片段。Ĵ

sonObject newEpic = new JsonObject();
        newEpic.addProperty("Name", "Test User story");
        newEpic.addProperty("Workspace", "/workspace/59461540346");
        newEpic.addProperty("Project", "/project/1575156879");      
        newEpic.addProperty("Owner", UserInfo("xxxxx", rallyRestApi));
        newEpic.addProperty("Feature", "/feature/29047088908");
        CreateRequest createRequest1 = new CreateRequest("hierarchicalrequirement", newEpic);
        CreateResponse createResponse1 = rallyRestApi.create(createRequest1);

上面的代码在拉力赛中创建了用户故事,但没有映射到特征。我怎样才能做到这一点?任何的想法

4

1 回答 1

1

也许改变这一行:

newEpic.addProperty("Feature", "/feature/29047088908");

对此:

newEpic.addProperty("PortfolioItem", "/feature/29047088908");
于 2019-02-27T04:31:01.213 回答