Deleting Work Items
I'm using RTC 2.0.0.2 and I notice that the GUI doesn't support the deletion of work items.
I managed to delete a work item using OSLC CM REST and I was wondering if this is safe and clean (ex. not leave dangling pointers). |
5 answers
I'm using RTC 2.0.0.2 and I notice that the GUI doesn't support the deletion of work items.I'm not sure what your OSLC CM REST call did but work item deletion wasn't implemented until RTC 3.0.1. |
I'm not sure what your OSLC CM REST call did but work item deletion wasn't implemented until RTC 3.0.1. Yeah, that's what I thought, but I figure I'd give it a try anyways since I needed it. OSLC states that it's not mandatory for the service to have the ability to delete change request. As the document states, the call is just a simple HTTP Delete to the work item URI. It DOES work as any subsequent queries for the work item returns a "item does not exist". But my concern is if it is doing it properly. |
I'm not sure what your OSLC CM REST call did but work item deletion wasn't implemented until RTC 3.0.1. Yeah, that's what I thought, but I figure I'd give it a try anyways since I needed it. OSLC states that it's not mandatory for the service to have the ability to delete change request. As the document states, the call is just a simple HTTP Delete to the work item URI. It DOES work as any subsequent queries for the work item returns a "item does not exist". But my concern is if it is doing it properly.https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/59173 You may want to look at the work item delete story. It seems that for 2.0, work items are not deleted but archived. It's likely that the OSLC CM REST call archived the work item instead of deleting it. I'm not sure what the call does in 3.0.1 or how to archive a work item. The user probably needs to be a project administrator to archive since deleting also requires admin status. |
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/59173 I can't find it anywhere. I used a work item query with no conditions. I also tried running a report of work items including all archived work items as well. Shouldn't the URL for the work item still work even if it is archived? |
Geoffrey Clemm (30.1k●3●30●35)
| answered Mar 16 '11, 11:38 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I am not aware of any "archive" operation being available on work items
in 2.0 (although there are things you can do to "effectively" archive a work item, such as re-parenting it to a "junk" project area). I'm also not aware of any "delete" operation being available on work items in 2.0, so I am intrigued as to what is going on. Cheers, Geoff On 3/16/2011 10:08 AM, tmok wrote: eykchanwrote:https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/59173I'm not sure what your OSLC CM REST call did You may want to look at the work item delete story. It seems that for 2.0, work items are not deleted but archived. It's likely that the OSLC CM REST call archived the work item instead of deleting it. I'm not sure what the call does in 3.0.1 or how to archive a work item. The user probably needs to be a project administrator to archive since deleting also requires admin status. |
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.