Calculation macro
The calculation macro is based on the Calculations feature in the Traceability Matrix. Please feel free to read its docs to get acquainted first with the functionalities.
Use Case
The calculation’s first use is to calculate data from the requirement’s properties, for example measure the sum of estimates your project will take. Or the percentage of completion of a project based on the requirement’s status.
This calculation macro can also be as simple as adding simple operations next to your requirements (For example, measure engineering pieces vital for your requirements). And if you are familiar with our calculation syntax, add complex functions based on your requirements details and dependencies.
How to use the Calculation macro?
Anywhere in your Confluence page
Add the macro using /req
This dialog will open:
Here, you’ll need to choose the requirement that you’ll perform the calculation for.
It can be from a different space, and variant, of your current page.
Select a requirement from the list.
You can use a simple syntax and type the requirement key.
Enter your formula using the Calculation syntax.
Some examples
Arithmetics Operations
Ex: number * number
Aggregation functions
Ex: SUM(@Cost, from@Refines)
 |
Add dynamic requirement detail
Ex: If you want to add some context to a requirement link.
 |
See more examples
Go to the Calculation’s syntax to see more examples of formula: Calculation syntax