1 Reply Latest reply on Mar 15, 2012 4:20 AM by hadik

    CommentId always remains 0(Zero)

    hadik

      Task task = taskService.getTask(taskId);

      TaskData data = task.getTaskData();

      List<Comment> comments = data.getComments();

       

      for(Comment comment:comments){

           System.out.println("Comment Id:"+comment.getId());

           System.out.println("Commented by:"+comment.getAddedBy());

           System.out.println("Commented at:"+comment.getAddedAt());

           System.out.println("Comment:"+comment.getText());

      }

       

       

      During my testing of the code above I found that I always find the commentId=0(Zero). All other fields I get properly. Is it a bug?

       

      Regards,

      Hardik Dave