It's all about the answers!

Ask a question

Deletion of comments using Java API


Steven Melcher (5012428) | 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 (5012428) | 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.