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

How to fetch comments from particular workitem

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

0 votes

Comments

Consider asking a question.


Be the first one to answer this question!

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

Question asked: Nov 15 '19, 4:19 a.m.

Question was seen: 288 times

Last updated: Nov 16 '19, 4:24 p.m.

Confirmation Cancel Confirm