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 sum of the number of attachments in the sub-tasks of the issue.

Expression

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

issue.subtasks.map(subtask => subtask.attachments.length).reduce((a, b) => a + b, 0)
Feature

Field type

Smart number field

Parsing mode

Jira expression

Expression
issue.subtasks.map(subtask => subtask.attachments.length).reduce((a, b) => a + b, 0)
Label
Use case description

Return the sum of the number of attachments in the sub-tasks of the issue.

Complexity