回顾API:已删除的项目 [英] Lookback API: Deleted items

查看:96
本文介绍了回顾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.

这篇关于回顾API:已删除的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆