You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

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 != "")