...
Formulas are constructed by stringing together operators, values and functions in a way that a single value results from them. Literal values, fields, and mathematical functions all result in one value, while linking relation functions can result in multiple values, depending on the number of issues that are involved. Operators or aggregating functions reduce multiple values into one. A formula must result in a single value, so subtasks('Quantity')
is invalid, but sum(subtasks('Quantity'))
is valid.
...
To use a custom field, type its name, for example Budget
or Quantity
. If your field’s name contains spaces, you must surround it with double quotes, for example “Story Points”
. Quotes are optional for values without spaces.
Operators
Operators combine two values. The following operators are supported:
...
Functions are versatile, we provide three types of them. One type consists of mathematical functions, to enable more calculations you can do. The second are aggregating functions, where you combine multiple values into one. The third type fetches values from other related issues.
Mathematical |
---|
...
Mathematical Function | Description | Example | Can Take Multiple Values | Returns Multiple Values | |
---|---|---|---|---|---|
round(number, decimals) | Rounds the passed value to the specified number of significant decimal digits. |
| |||
floor(number) | Rounds the passed value to the nearest lower integer. |
| |||
ceiling(number) | Rounds the passed value to the nearest higher integer. |
| |||
abs(number) | Gives the absolute value, i. e. the positive value. |
| |||
signum(number) | Normalises negative values to -1, zero to 0, and positive values to 1 |
| |||
mod(dividend, divisor) | Calculates the remainder of the dividend when divided by the divisor. |
| |||
Aggregating Function | Description | Example | Can Take Multiple Values | Returns Multiple Values | |
sum(number…) | Sums up the passed values. |
| |||
avg(number…) | Gives the average of the passed values. |
| |||
min(number…) | Gives the smallest of the passed values. |
| |||
max(number…) | Gives the largest of the passed values. |
| |||
Linking Relation Function | Description | ExampleCan Take Multiple Values | Returns Multiple Values | ||
subtasks(field) | Retrieves the values of the passed field from all subtasks. Must be aggregated before using outside of a function. |
|
| ||
parent(field) | Retrieves the values of the passed field from the parent of a subtask. |
| |||
issuesInEpic(field) | Retrieves the values of the passed field from all issues in an epic. Must be aggregated before using outside of a function. |
| |||
epic(field) | Retrieves the values of the passed field from the epic of an issue. |
| |||
linkedIssues(linkName, field) | Retrieves the values of the passed field from all linked issues. Must be aggregated before using outside of a function. |
|