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

Deletion of comments using Java API

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.

0 votes



One answer

Permanent link
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);

0 votes

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

Question asked: May 27 '11, 2:20 p.m.

Question was seen: 6,167 times

Last updated: May 27 '11, 2:20 p.m.

Confirmation Cancel Confirm