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

Deleting work items using migration handler

Hi,

We are trying to delete unwanted work items as part of the migration process. We plan to develop a custom Migration Handler to do this job. Can you please specify the PJCL or other available APIs to be able to do this? We are using RTC 3.0.1.

Thanks,

Ankur.

0 votes



One answer

Permanent link
 I would suggest to take a look at REST API)

0 votes

Comments

Hi Vladimir,

We tried to use the IWorkItemRestService to delete the work items during the repotools import process. However this fails silently and the work items don't get deleted. We also tried the IWorkItemServer APIs, but did not succeed even with that. There is no error in the repotools log but the work items don't get deleted. So just wondering what we are missing here.

Thanks.

Only thing that comes to mind is permissions for the authenticated user. Is this user a member of JazzAdmins? Or it has role in every project area that as permission to delete work item?

MigrationHandler is getting executed during repotools-ccm -import. Is there a way to set permissions for this case.

Oh, I see.I don't think so, it should use credentials for direct access to DB, without application authorization. I was treating "custom" as self-written from scratch, but not using repotools framework.

Thanks for your reply. In that case, How can we delete the WorkItems from our custom service which is getting invoked during import.

This work item may contain some clue: https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=149428&tab=com.ibm.team.workitem.tab.links

At least it states use of com.ibm.team.repository.service.IRepositoryItemService.deleteItem(IItemHandle)

Had tried this as well.

Got Exception INFO: Exception while deleting work item: Access violation in component item service. Service component: com.ibm.research.automation.metrics, Model component: com.ibm.team.workitem, Item type: com.ibm.team.workitem#WorkItem

Sorry, but I'm out of ideas here. Maybe you should add some tags like "extending" and "rest-api" to attend people with deeper knowledge of subject.

showing 5 of 8 show 3 more comments

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
× 119

Question asked: Aug 09 '12, 8:44 a.m.

Question was seen: 4,270 times

Last updated: Aug 13 '12, 11:03 a.m.

Confirmation Cancel Confirm