Skip to main content
Skip table of contents

Operations with field values from sub-tasks

Return the result of summing the multiplication of the field values of two Number fields in every sub-task of the current work item.

Configuration

Create a Custom smart number field and use the Jira expression parsing mode.

Expression

CODE
issue.subtasks.length && issue.subtasks.map( s => (s.customfield_nnnnn || 0) * 
(s.customfield_ppppp || 0)).reduce((a, b) => a + b)

Please, replace nnnnn and ppppp in the above expression with the IDs of the Number fields.

Format

Default

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.