使用 Rally-Node 创建用户故事

Create User Story using Rally-Node

我正在使用 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 吗?我能够创建缺陷,但我不确定如何创建用户故事。

谢谢。

也许尝试改变:

type: 'user story',

type: 'hierarchicalrequirement',