Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

how to get deleted workitems using RTC Java API

 I want to get list of workitems that are deleted from a project using java API.

Can anyone please share code for same?

0 votes



2 answers

Permanent link
According to this thread try using following steps:

 IWorkItem workItem = workItemClient.findWorkItemById(id, IWorkItem.SMALL_PROFILE, monitor);
    IDetailedStatus status = workItemClient.deleteWorkItem(workItem, monitor);

    if (!status.isOK()) {
            throw new TeamRepositoryException("Error deleting work item",
                    status.getException());
    }

    System.out.println("Deleted work item: " + idString + ".");

0 votes

Comments

Above code is to delete a workitem in RTC. I don't want to delete workitem instead I want to get the ones that are deleted.


Permanent link
My understanding is that deleted work items are really deleted (which is why ADMIN privileges are required to delete them).   Once deleted, they no longer exist in the database, and would have to be retrieved from a backup made of the database before the deletion occurred.

0 votes

Comments

 Is there no concept in RTC like recycle bin that we have in HP Quality Center? If a particular item is deleted, it moves from current location to recycle bin.

As far as I am aware if they are deleted, they are gone. That is why you usually don't delete work items, but close them to be able to filter them away.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,939

Question asked: Aug 26 '15, 6:17 a.m.

Question was seen: 2,929 times

Last updated: Aug 31 '15, 4:55 a.m.

Confirmation Cancel Confirm