Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The report macro supports template variables in the search query to make traceability matrices more modular and reusable. Template variables allow you to save traceability matrices with a dynamic search query that can be adjusted when used in a report macro, without modifying the original traceability matrix. This is particularly useful when embedding the same traceability matrix across multiple Confluence pages with only slight modifications to the search query.

...

  • ${prefix}: A variable named prefix with no default value.

  • ${prefix:BR}: A variable named prefix with a default value of BR.

  • \${prefix}: Literal text ${prefix} that should not be treated as a variable.

You can also use system variable allowing you to have dynamic reports.
You can use three kinds of system variables :

  • SYSTEM_PAGE_ID : will be replaced by the page where the report is inserted in
    e.g. key ~ ‘BR%' AND page = '${SYSTEM_PAGE_ID}’ will show all the requirements having a key starting by “BR” and being defined in the page where the report is inserted in.

  • SYSTEM_VARIANT_NAME and SYSTEM_VARIANT_ID :
    e.g. key ~ ‘BR%' AND variant = '${SYSTEM_VARIANT_NAME}’ will show all the requirements having a key starting by “BR” and being in the variant of the current page where the report is inserted in.

  • Status
    colourBlue
    titleIN DEVELOPMENT
    SYSTEM_SPACE_KEY
    e.g. key ~ ‘BR%' AND space = '${SYSTEM_SPACE_KEY}’ will show all the requirements having a key starting by “BR” and being in the space of the current page where the report is inserted in.

Use template variables in the “Traceability” tab

...