Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Confluence
Teams
, (opens new window)

Requirement Yogi (Cloud)
Results will update as you type.
  • Getting Started - Tutorials
  • Best Practices
  • Administrator's guide
  • Features
    • Requirement types
    • Requirements search
    • Requirement dependencies
    • Traceability matrix
    • Report macro: Insert a matrix into a page
    • Coverage
    • Versioning
    • Transformation wizard: Transform your pages
    • Calculations
      • Use cases
      • Calculation syntax
      • Calculation macro
    • Linear documents: Manage requirements outside of tables
    • External properties
    • Excel Loop import: Import external properties
    • Configuration macro: Configure properties and documents
  • Requirement Yogi for Jira
  • Testing your requirements - Best practices
  • Integrations
  • REST APIs (Cloud)
  • Release notes
    Calendars
You‘re viewing this with anonymous access, so some content might be blocked.
/
Calculation macro
Updated Jun 18, 2024

    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?

    1. Anywhere in your Confluence page

    2. Add the macro using /req

    3. This dialog will open:

    image-20240617-153507.png
    1. Here, you’ll need to choose the requirement that you’ll perform the calculation for.

      1. It can be from a different space, and variant, of your current page.

    2. Select a requirement from the list.

      1. You can use a simple syntax and type the requirement key.

    3. Enter your formula using the Calculation syntax.

    Some examples

    Arithmetics Operations

    Ex: number * number

    Add the Calculation Macro.png
    What the macro looks like.png

    Aggregation functions

    Ex: SUM(@Cost, from@Refines)

    Calculate sum of children's property.png
    Result in the page.png
    Result in the popup.png

     

    Add dynamic requirement detail

    Ex: If you want to add some context to a requirement link.

    Add random properties of the requirement.png
    How it looks in the page.png

     

    See more examples

    Go to the Calculation’s syntax to see more examples of formula: Calculation syntax

    💬 This feature is pretty new and we are open to feedback, feel free to contact us on the support

    → https://support.requirementyogi.com/

    {"serverDuration": 14, "requestCorrelationId": "c9fe09e1181347afa5521be104ec3072"}