How to retrieve via Web Services API timesheet data of deleted work items ?

Document ID : KB000057550
Last Modified Date : 14/02/2018
Show Technical Document Details

Issue

Is there a way to retrieve via Web Services API the data of stories that show as deleted on timesheet?

Resolution

The deleted stories appear in UI grayed out, but the hours are still available? via UI and API.

In this example the Timesheet shows S7 before the? deletion:


User-added image

and after deletion:

User-added image

The excerpts of TimeEntryItem queries results below compare the data related to a deleted work item with that of an existing work item. Both the Task and WorkProduct attributes are set to null, but the DisplayString of respective work items and the Count are available. Here is an extract from a deleted story's data:

?


Here is an extract from an existing story's data:

??
Another query that uses the undocumented recyclebin endpoint can be used to get the following data about work items in the recycle bin:

ID
ObjectID
DeletionDate
Name
DeletedBy
Type


Please note that undocumented endpoint may stop working without further notice.
Standard rally query parameters such as: (Name = "My Object Name")? do not work in the recycle bin, but it is possible to query by deletion date. Thjs query will return data from a worksapce a user is currently logged in to in anther tab of the same browser:

https://rally1.rallydev.com/slm/webservice/v2.0/recyclebin?query=(DeletionDate > "2013-01-01")

A workspace can be specified in a query using workspace ObjectID:

https://rally1.rallydev.com/slm/webservice/v2.0/recyclebin?workspace=https://rally1.rallydev.com/slm/webservice/v2.0/workspace/1111

The query returns this data:

{}
  • ?