It's all about the answers!

Ask a question

Deletion of comments using Java API


Steven Melcher (6012831) | asked May 27 '11, 2:20 p.m.
Is it possible to delete a work item's comments via the Java API?

I want to remove the comment, not just the contents of the comment.

One answer



permanent link
Steven Melcher (6012831) | answered Jun 02 '11, 9:34 a.m.
I found that it is possible to delete a comment using the getInternalComments method after casting a working copy of a work item to a WorkItem.


// Removes the first comment
((WorkItem)workingCopy).getInternalComments().remove(0);

Your answer


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