Remove either the label use-case-smart-text or use-case-smart-number depending on the feature the use case is based on

Use case

Return the number of users who have added attachments to the issue.

Expression

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

issue.attachments.map(attachment => attachment.author.accountId).reduce((a, b) => a.includes(b) ? a : a.concat(b), []).length


 

Feature

Field type

Smart number field

Parsing mode

Jira expression

Expression
issue.attachments.map(attachment => attachment.author.accountId).reduce((a, b) => a.includes(b) ? a : a.concat(b), []).length
Label
Use case description

Return the number of users who have added attachments to the issue.

Complexity