Can you create a calculated field in eazyBi—without using JavaScript—that returns only the names of users who have commented on individual Jira issues? Below is an example of a different approach I’ve attempted. I would appreciate any suggestions for improvement:
let authorsArray = [];
let issueComments = issue.fields.comment;
if (issueComments && issueComments.comments) {
let commentEntries = issueComments.comments;
for (let index = 0; index < commentEntries.length; index++) {
let currentComment = commentEntries[index];
if (currentComment.author) {
authorsArray.push(currentComment.author.displayName + "|active");
}
}
let uniqueAuthors = authorsArray.filter((element, pos, arr) => arr.indexOf(element) === pos);
issue.fields.custom_comment_summary = uniqueAuthors.join("\n");
}