It's all about the answers!

Ask a question

How to fetch comments from particular workitem


Himanshu Vashisth (111) | asked Nov 15 '19, 4:19 a.m.

Hi Team ,


I need to fetch comments from particular workitem , i am able to fetch counts of the comments but i need to fetch content for each comments 

Please help me for the same , Here is my code :

IComments comments = wi.getComments();
com.ibm.team.workitem.common.model.IComment[] theComments = comments.getContents();
System.out.println("theComments"+theComments.length);


Comments
Ralph Schoon commented Nov 16 '19, 4:24 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Consider asking a question.

Be the first one to answer this question!


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.