All standard aggregate functions and available modifiers are listed on this page.
An aggregate function call contains an expression in curly braces ("{}"), which is calculated for the item and all sub-items (or, in some cases, for another subset of related items in the structure), and then the resulting values are aggregated according to the meaning of the aggregate function.
It is not possible to include both upward-looking and downward-looking aggregate functions within the same formula. When using one of the two upward-looking aggregate functions, PARENT and JOIN (when used with an upward-looking modifier), you cannot include any of the other aggregate functions listed above.
For example, the formula for calculating the percentage of Story Points of an issue compared to the aggregate Story Points of its parent ( story_points / PARENT {SUM {story_points}} ) would fail, because PARENT looks one level up in your hierarchy, while SUM aggregates the levels below.
We are working to fix this limitation in a future version.
Sum calculates a numerical total for the values calculated for the item and/or its sub-items.
Note that when the value of the expression under aggregation is not numeric (and cannot be converted to number), it is ignored.
If a certain issue (or another kind of item) is included multiple times in the sub-tree, the sum will include the value for that issue only once. This behavior can be overridden by using the #all modifier.
Accepts modifiers: #all, #children, #leaves, #strict.
Count calculates a count of defined values (or truthy values, if the #truthy modifier is specified) for the item and/or its sub-items.
If a certain issue (or another kind of item) is included multiple times in the sub-tree, it will be counted only once. This behavior can be overridden by using the #all modifier.
Accepts modifiers: #all, #children, #leaves, #strict, #truthy.
Avg calculates an average of defined values for the item and/or its sub-items. The result for avg is generally the same as sum/count. Returns nothing if there are no defined values for {x}.
If a certain issue (or another kind of item) is included multiple times in the sub-tree, the average value will include the value for that issue only once. This behavior can be overridden by using the #all modifier.
Accepts modifiers: #all, #children, #leaves, #strict.
Max returns the maximum defined value for the item and/or its sub-items. Numeric, date, duration and text fields can be compared. Text fields are compared lexicographically.
Accepts modifiers: #children, #leaves, #strict.
Min returns the minimum defined value for the item and/or its sub-items. Numeric, date, duration and text fields can be compared. Text fields are compared lexicographically.
Accepts modifiers: #children, #leaves, #strict.
Join concatenates (joins) strings from the item and its parents (or other items, if modifiers are used).
Accepts modifiers: #ancestors, #subtree, #children, #leaves, #strict, #reverse, #separator, #beforeChildren, #afterChildren, #fromDepth, #toDepth, #distinct.
Parent extracts the value from the parent row or from an ancestor row by specified depth.
Accepts modifier: #depth.
Tells the aggregate function to include duplicate items. By defaults, aggregate functions ignore duplicate items.
Can be used with: sum, count, avg.
Only count row if the subexpression produces a truthy value .
Can be used with: count.
Do not process the current row item as part of the aggregation.
Cannot be used together with #children, #ancestors or #leaves, since these already exclude the current row.
Can be used with: sum, count, avg, join, min, max.
Only process direct children of the current row.
Can be used with: sum, count, avg, join, min, max.
Only process leaves (items without children) in the subtree of the current row.
Can be used with: sum, count, avg, join, min, max.
Process the whole subtree of the current row. This is default behavior for sum, count, avg, min, max.
Can be used with: join.
Only process ancestors of the current row. This is default behavior for join, parent.
Can be used with: join.
Reverses the order of row processing.
Can be used with: join.
Defines the separator for string joining. This modifier has a string parameter. The default is ", ".
Can be used with: join.
See #afterChildren.
Defines the exit separator between children and parent rows. This modifier has a string parameter. The default exit separator is:
Can be used with: join.
Specifies the position of the first row the aggregate function should take as input for a sequence.
Position is specified by an integer parameter denoted as n below:
This modifier does not work with any tree types except #ancestors.
Can be used with: join.
Specifies the position of the last row the aggregate function should take as input for a sequence.
Position is specified by an integer parameter denoted as n below:
This modifier does not work with any tree types except #ancestors.
Can be used with: join.
Makes join only concatenate distinct values. A duplicate value won't be added more than once if this modifier is on.
Modifiers #beforeChildren and #afterChildren don't work when this option is on.
Can be used with: join.
Specifies the position of the parent that possesses value.
Position is specified by an integer parameter denoted as n below:
Can be used with: parent.