Last comment date
Calculated field to retrieve the date when the last comment was added to an issue. You can import this field as a property and as a measure.
Specify the settings for the new field:
- Internal name, e.g.,
lastcommentdate - Display name, e.g.,
Latest comment date - Data type is
datetime - Add the additional advanced settings
json_fields = ["comment"]
JavaScript code
var comments = issue.fields.comment.comments;
if (comments.length > 0) {
var comment = comments[comments.length - 1];
return comment.created;
}