rally-nodeツールキットを使用して、新しいChangesetを新しいChanges inlineで既存のUserstoryに追加しようとすると、エラーメッセージが返されます。新しいChangesがコメントアウトされると、Changesetが期待通りに追加されます。それは私が把握することができない変更のデータを持つもののようです。rally-nodeコレクションに新しいアイテムを追加する
呼び出し追加:それはそのデータと既存の変更を見つけることを試みたが、私がしたい私に言っているように見える { [Error: Could not create artifact to collection] errors: [ 'Could not create artifact to collection', 'Cannot parse object reference from "{null: {"Action": "M", "PathAndFilename": "file1.json", "Uri": "https://ghe/org/repo/commit/b8460460254cb79d3e72c98172c164f5c4d3493a/file1.json"}}"' ] }
:
rallyApi.add({
"ref":"https://rally1.rallydev.com/slm/webservice/v2.0/hierarchicalrequirement/91834286580",
"collection":"Changesets",
"data":[
{
"Author":{
"_ref":"https://rally1.rallydev.com/slm/webservice/v2.0/user/53634054872"
},
"CommitTimestamp":"2017-03-17T09:52:07-04:00",
"Message":"Feature/tags (#11)",
"Revision":"b8460460254cb79d3e72c98172c164f5c4d3493a",
"Uri":"https://ghe/org/repo/commit/b8460460254cb79d3e72c98172c164f5c4d3493a",
"Changes":[
{
"Action":"M",
"PathAndFilename":"file1.json",
"Uri":"https://ghe/org/repo/commit/b8460460254cb79d3e72c98172c164f5c4d3493a/file1.json"
},
{
"Action":"M",
"PathAndFilename":"file2.json",
"Uri":"https://ghe/org/repo/commit/b8460460254cb79d3e72c98172c164f5c4d3493a/file2.json"
}
],
"SCMRepository":{
"_ref":"https://rally1.rallydev.com/slm/webservice/v2.0/scmrepository/101417587520"
}
}
]
})
返されるエラーをドキュメントに指定されている新しい変更と最近の質問を追加してください:
https://github.com/RallyTools/rally-node/wiki/User-Guide#add-to-a-collection
Rally API Add Tags to existing userstory NodeJS
これは私が行った方向で、うまくいきました。オリジナルの提案が現在のライブラリでサポートされているものではないことを確認していただきありがとうございます。 –