背景
期望能在问题的查询列表中展示当前问题最新的一个评论
解决方案
通过ScriptRunner定义一个长文本类的自定义字段,并在脚本中增加以下信息
import com.atlassian.jira.component.ComponentAccessor def commentManager = ComponentAccessor.commentManager def comment = commentManager.getLastComment(issue) if (comment) { comment.body }