回顾API:已删除的项目
我想使用回溯API来查看已删除对象的历史记录,如果我知道格式化的ID,我认为这应该很简单.我只需要查询:
I'd like to use the lookback API to view the history of a deleted object, which I think should be simple if I know the formatted id. I just need to query:
{FormattedID:'DEXXXX'}
{ FormattedID: 'DEXXXX' }
但是,Lookback API是否记录了删除对象时的任何特殊记录(例如,我可以确切地知道何时删除对象或由谁删除)吗?它可以帮助我将其指向回收站"中的正确位置,以便我可以尝试将其删除吗?
But does the Lookback API record anything special for when an object is deleted (like can I tell exactly when it was deleted or by whom)? Can it help point me to the correct place in the Recycle bin so that I could try to undelete it?
有趣.我只是使用fetch = true在回收站上运行了REST查询,并在结果集上获得了比我以前更多的数据:
Interesting. I just ran a REST query on the Recycle Bin with fetch=true and got back a lot more data on the result set than I'm used to:
获取 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对此信息进行了增强,但是该数据包括删除该对象的用户的姓名和参考.
I didn't realized Rally released an enhancement to this information, but this data includes the Name and Ref of the User that deleted the Object.
您可以使用以下REST URL遍历当前工作区/项目的回收站:
You can walk the Recycle bin of the current Workspace/Project using this REST URL:
其中12345678919和12345678920分别是工作区和项目OID.
Where 12345678919 and 12345678920 are the Workspace and Project OIDs, respectively.