我正在使用Rally的rally-node而且我不确定如何为项目创建用户故事。
function createUserStory() {
console.log("creating user story");
restApi.create({
type: 'user story',
data: {
Name: 'My UserStory',
ScheduleState: 'Defined'
},
fetch: ['FormattedID'],
scope: {
project: project,
workspakce: workspace
}
}, function (error, result) {
if (error) {
console.log("error: ", error);
} else {
console.log('result: ', result.Object);
}
});
}
然而,我收到此错误:
error: { [Error: /user story/create: 404! body=<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 404 Could not find web service for '/user story/create'.</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /slm/webservice/v2.0/user%20story/create. Reason:
<pre> Could not find web service for '/user story/create'.</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>
或者我需要使用add
吗?我能够创建缺陷,但我不确定如何创建用户故事。
感谢。
答案 0 :(得分:1)
也许尝试改变:
输入:'用户故事',
到
输入:'hierarchicalrequirement',