gpt4 book ai didi

node.js - 集会 Node 将新项目添加到集合中

转载 作者:太空宇宙 更新时间:2023-11-04 02:09:34 25 4
gpt4 key购买 nike

使用集会 Node 工具包,当我尝试将新的变更集(带有新的内联变更)添加到现有的用户故事时,我收到返回的错误消息。当我注释掉新的更改时,更改集会按预期添加。这似乎与我无法弄清楚的更改数据有关。

添加通话:

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"
}
}
]
})

返回错误:
{ [错误:无法创建工件到集合]
错误:
['无法创建工件到集合',
'无法解析来自 "{null: {"Action": "M", "PathAndFilename": "file1.json", "Uri": "https://ghe/org/repo/commit/b8460460254cb79d3e72c98172c164f5c4d3493a/file1.json"}}"' 的对象引用' ] }

它似乎告诉我它试图使用该数据查找现有更改,但我想添加文档中指定的新更改和最近的问题:

https://github.com/RallyTools/rally-node/wiki/User-Guide#add-to-a-collection

Rally API Add Tags to existing userstory NodeJS

最佳答案

我认为你不能同时做所有这些事情(尽管那会很酷)。

我首先使用 add 方法来添加您指定的变更集,但不进行任何更改。然后再次使用 add 方法在该变更集上创建更改。这有效吗?

关于node.js - 集会 Node 将新项目添加到集合中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42871853/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com