when a workitem is deleted, does its attachments get deleted too (if it was the last attachment referencer)?
we have been testing our project copy utilities, one run on our production machine for timing estimates..
we will delete all the workitems and do a new run on the final cutover..
but I realize now that we created a lot of attachments that need to be redone too..
how to clean them up is the issue.. any ideas? query all workitems with attachments, then process the list and delete them one by one?
thanks for any guidance..
we will delete all the workitems and do a new run on the final cutover..
but I realize now that we created a lot of attachments that need to be redone too..
how to clean them up is the issue.. any ideas? query all workitems with attachments, then process the list and delete them one by one?
thanks for any guidance..
Accepted answer
Sam, I just looked into the workitemDelete API and it looks like attachments are deleted only, if they are not referenced by another work item.
Comments
thanks.. of course I didn't think of looking at the code!.. doah!
now, I think I WILL go look, as our utility had a bug,. the links created for attachments were backwards.. the attachment referenced the workitem, not the other way around..
everything looked great on the web, but there were NO attachments when using Eclipse (for a specific workitem).. wonder how the delete logic handled that!..
we are deleting ALL workitems in a project.