gpt4 book ai didi

rally - 回溯 API : Deleted items

转载 作者:行者123 更新时间:2023-12-04 05:11:41 24 4
gpt4 key购买 nike

我想使用回溯 API 查看已删除对象的历史记录,如果我知道格式化的 id,我认为这应该很简单。我只需要查询:

{ 格式化 ID:'DEXXXX' }

但是,Lookback API 是否会记录对象何时被删除的特殊情况(比如我能否准确地知道它是何时或由谁删除的)?它可以帮助我指向回收站中的正确位置,以便我可以尝试取消删除它吗?

最佳答案

有趣。我刚刚使用 fetch=true 在回收站上运行了一个 REST 查询,并在结果集上获得了比我以前更多的数据:

获取 https://rally1.rallydev.com/slm/webservice/1.40/recyclebinentry/12345678914.js

{ "RecycleBinEntry" : { "DeletedBy" : { "_rallyAPIMajor" : "1",
"_rallyAPIMinor" : "40",
"_ref" : "https://rally1.rallydev.com/slm/webservice/1.40/user/12345678910.js",
"_refObjectName" : "User One",
"_type" : "User"
},
"DeletionDate" : "2012-05-15T02:53:10.087Z",
"Errors" : [ ],
"ID" : "DE32",
"Name" : "Error found in TC43: TC07-011",
"ObjectID" : 12345678911,
"Subscription" : { "_rallyAPIMajor" : "1",
"_rallyAPIMinor" : "40",
"_ref" : "https://rally1.rallydev.com/slm/webservice/1.40/subscription/12345678912.js",
"_refObjectName" : "My Subscription",
"_type" : "Subscription"
},
"Type" : "Defect",
"Warnings" : [ ],
"Workspace" : { "_rallyAPIMajor" : "1",
"_rallyAPIMinor" : "40",
"_ref" : "https://rally1.rallydev.com/slm/webservice/1.40/workspace/12345678913.js",
"_refObjectName" : "My Workspace",
"_type" : "Workspace"
},
"_CreatedAt" : "May 14, 2012",
"_objectVersion" : "1",
"_rallyAPIMajor" : "1",
"_rallyAPIMinor" : "40",
"_ref" : "https://rally1.rallydev.com/slm/webservice/1.40/recyclebinentry/12345678914.js",
"_refObjectName" : "Error found in TC43: TC07-011"
}
}

我没有意识到 Rally 发布了对此信息的增强,但此数据包括删除对象的用户的名称和引用。

您可以使用此 REST URL 遍历当前工作区/项目的回收站:

https://rally1.rallydev.com/slm/webservice/1.40/recyclebin.js?workspace=/workspace/12345678919&project=/project/12345678920&fetch=true

其中 12345678919 和 12345678920 分别是工作区和项目 OID。

关于rally - 回溯 API : Deleted items,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14843249/

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