Jira 评论导出 html

Jira Comment export html

我对导出的评论有疑问... 我用它来将评论放入哈希图中并将它们放入我的虚拟机中,虚拟机应该在 html

上呈现它们
issueParams.put("comments", ComponentAccessor.getCommentManager().getComments(issue));

现在的问题是有变量$comments,有我的评论,但我无法获取它们的内容。它在我的 foreach 中显示我的变量中有两个注释,但我无法获得例如作者的正文 $comment.getBody...

请帮忙

getComments() 方法returns Comment 对象列表。你需要调用 getBody()

#foreach ($comment in $comments)
    $comment.body <br>
#end