Use case

Return the total size of all attachments in megabytes.

Expression

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

issue.attachments.reduce((result, att) =>
            result + att.size, 0) / 1024 / 1024

Display format

Optionally use the following output format, to return a formatted result supplemented by "MB".

0.## MB