Use case

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

Expression

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


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



Feature

Field typeSmart text field
Parsing mode

Jira expression

Expression
issue?.attachments?.reduce((result,att) =>
                result.set(att.author.displayName,""),
            new Map()).entries().flatten().filter(entry => entry != "")
Label
Use case description

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

Complexity