Use case

Return the display names of the comments' authors. Each name only appears once.

Expression

Create and configure a Smart field using this expression in Jira expression parsing mode:

issue.comments.reduce((result, comment) => 
            result.set(comment.author.displayName, ""), 
            new Map()).entries().flatten().filter(entry => entry != "")