在特定项目中创建用户故事集会 API?

Rally API for User story creation in a particular Project?

我试过下面的代码,但没有成功

var rally = require('rally'),
    restApi = rally({
        user: 'userName', //required if no api key, defaults to process.env.RALLY_USERNAME
        pass: 'password', //required if no api key, defaults to process.env.RALLY_PASSWORD
        apiKey: 'XXXXX', //preferred, required if no user/pass, defaults to process.env.RALLY_API_KEY
        apiVersion: 'v2.0', //this is the default and may be omitted
        server: 'https://rally1.rallydev.com',  //this is the default and may be omitted
        requestOptions: {
            headers: {
                'X-RallyIntegrationName': 'My cool node.js program',  //while optional, it is good practice to
                'X-RallyIntegrationVendor': 'My company',             //provide this header information
                'X-RallyIntegrationVersion': '1.0'                    
            }
            //any additional request options (proxy options, timeouts, etc.)     
        }
    });

    restApi.create({
    type: 'hierarchicalrequirement', //the type to create
    data: {
        Name: 'RallYUS',
         //the data with which to populate the new object
    },
    fetch: ['FormattedID'],  //the fields to be returned on the created object
    scope: {
        //optional, only required if creating in non-default workspace
        project: 'rally',
        workspace: 'abcd'
    },
    requestOptions: {} //optional additional options to pass through to request
}, function(error, result) {
    if(error) {
        console.log(error);
    } else {
        console.log(result.Object);
    }
});

我能够创建一个 US,但在另一个项目中。我一直在尝试解决项目问题,事件也输入了 ObjectID 和 Object UUID,但仍然继续在附加到用户配置文件的默认项目中创建。任何通过创建 US 来强制 Userstory 使用层次关系的帮助肯定会有所帮助

所有对象关系都是使用 Web 服务中的引用指定的 API。这应该有效:

scope: {
    project: '/project/12345' //where 12345 is the object id
}