This function returns the sum of all elements in a given number list.
Syntax
sum(list) #Output: Number
Use cases and examples
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 11 Next »
sum(list) #Output: Number
Parser expression | Description |
---|---|
sum([1, 2, 3, 4, 5]) | This example returns: 15 |
sum(fieldValue({issue.timeSpent}, subtasks())) | This example returns a number representing the total time spent in minutes in all sub-tasks of current issues. To achieve this, the following functions are used: |
Parameters used in this function
Parameter | Input (data type) | Description |
---|---|---|
list | NUMBER LIST | Any given number list. |
This function returns a NUMBER
Powered by Atlassian Confluence 8.5.16, themed by Refined 7.6.0 and Decadis AG