Total attachment size in MB
This template displays the sum of the size of the attachments in the current work item in MB.
Configuration
To use the Total attachment size in MB template, simply select it from the template grid. Filter by Attachments to find it faster.
Parameters
This template does not require any additional parameter configuration.
Expert mode
If you switch to Expert mode you can see the Smart field in the Expression Parser. You can now tweak the expression to create a custom smart field based on this template.
Expression
Jira expression:
issue.attachments.reduce((result, att) =>
result + att.size, 0) / 1024 / 1024
Format
Optionally use the following output format, to return a formatted result supplemented by "MB".
0.## MB