我对评论导出有疑问... 我用它来将注释放入 Hashmap 中,并将它们放入我的虚拟机中,该虚拟机应该将它们呈现在 html 上
issueParams.put("comments", ComponentAccessor.getCommentManager().getComments(issue));
现在的问题是有变量 $comments 和我的评论,但我无法获取它们的内容。它在我的 foreach 中显示我的变量中有两个注释,但我无法使用 $comment.getBody 获取作者的正文...
请帮忙
最佳答案
getComments() 方法返回 Comment 对象的列表。您需要调用 getBody()
#foreach ($comment in $comments)
$comment.body <br>
#end
关于java - Jira 评论导出 html,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33892966/