Example scripts
To homepage
Jira

Show Last Comment for an Issue in Jira Cloud
App in script

ScriptRunner For Jira
by Adaptavist
Compatibility

Jira
Language |
groovy
final lastCommentFieldName = 'Last Comment'
def myIssue = Issues.getByKey(issue.key)
myIssue.update {
setCustomFieldValue(lastCommentFieldName, myIssue.getComments().last().body)
}
Having an issue with this script?
Report it here