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

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..

0 votes


Accepted answer

Permanent link
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.
sam detweiler selected this answer as the correct answer

1 vote

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.  

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,940

Question asked: Feb 17 '14, 5:11 p.m.

Question was seen: 3,805 times

Last updated: Feb 18 '14, 7:38 a.m.

Confirmation Cancel Confirm