...
Formulas are constructed by stringing together operators, values and functions in a way that a single value results from them. Different elements in the formula give different numbers of values:
Literal values, fields, and mathematical functions all result in one value
...
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.
Info |
---|
Read more about Functions. |
Literal Values
You can use constant values in your formulas. Their type is determined by their format.
...
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
...
, which is necessary to reduce the results of some functions of the third type
Relation functions, which fetch values from other related issues
...
, so you can get values from subtasks for example
Mathematical Function | Description | Example |
---|---|---|
| Rounds the passed value to the specified number of significant decimal digits. |
|
| Rounds the passed value to the nearest lower integer. |
|
| Rounds the passed value to the nearest higher integer. |
|
| Gives the absolute value, i. e. the positive value. |
|
| Normalises negative values to -1, zero to 0, and positive values to 1. |
|
| Calculates the remainder of the dividend when divided by the divisor. |
|
Aggregating Function | Description | Example |
| Sum of the passed values |
|
| Average of the passed values |
|
| Smallest of the passed values |
|
| Largest of the passed values |
|
Relation Function | Description | Example |
| Retrieves the values of the passed field from all subtasks. Must be aggregated before using outside of a function. |
|
| Retrieves the values of the passed field from the parent of a subtask. |
|
| Retrieves the values of the passed field from all issues in an epic. Must be aggregated before using outside of a function. |
|
| Retrieves the values of the passed field from the epic of an issue. |
|
| Retrieves the values of the passed field from all linked issues. Must be aggregated before using outside of a function. |
|
...