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 the values of a specific field from the issues returned by a JQL query.

Expression

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

 %{sum(fieldValue({issue.cfnnnnn},issuesFromJQL("project = DEMO and 'fieldName' is not empty")))}

Please, replace nnnnn in the above expression with the ID of the Number custom field and fieldName with its name. Additionally, replace the DEMO project key with the corresponding project key of your project

This expression can be customized to limit the issues from which the values are obtained by modifying the JQL query in the issuesFromJQL() parser function.

Used parser functions

Feature

Field type

Smart number field

Parsing mode

General

Expression
 %{sum(fieldValue({issue.cfnnnnn},issuesFromJQL("project = DEMO and 'fieldName' is not empty")))} 

Please, replace nnnnn in the above expression with the ID of the Number custom field and fieldName with its name.

 
Label
Use case description

Return the sum the values of a specific field from the issues returned by a JQL query.

Complexity