Versions Compared

Key

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

You can add Requirement Yogi configuration macros to change the way your requirements are indexed.

To add a configuration macro, in the page edit mode, type /requi  or /config, or click on the + dropdown like you would to add any other Confluence macro.

Image Removed
Image Added

After adding a macro to the page, you can edit it simply by clicking on the macro:

Image Removed
Image Added

In tables

When you define requirements in table, by default, the requirement key should be in the first column, with a description in the second column, and properties in the following columns.

This table:

Image RemovedImage Added

Gets indexed as:

Image RemovedImage Added

Here is the default configuration for requirements in tables:

Image Removed

With the configuration macro, you can:

  • Rename properties.

  • Change the column type.

Image Added

Here, I changed the column of "Author" in "Original Author".

My "Dependencies" column was indexed both as a dependency and as a property, so I added a 4th column to my configuration macro to uncheck the indexing as a property, and I set the configuration macro to apply to all the following tables in the document (This configuration is not global, you need to add the macro to every Confluence page with requirements).

Image Removed
Image Added

tip

After inserting the macro and publishing the edited Confluence page, my requirement is now indexed with the changed properties as:

Image Removed

Image Added

You can quickly "unindex" the requirements in a page by adding a configuration macro at the top of the document and uncheck the requirements column. It can be useful when you have duplicated requirement definitions.

In paragraphs and headings

Info

New feature

When you define requirements in paragraph or headings, by default, the description of the requirement is the following text.

For this page:

Image Removed
Image Added

Here are my requirements:

Image RemovedImage Added
Image RemovedImage Added
Image RemovedImage Added

With the configuration macro, you can:

  • Change the property name.

  • Treat the bold text as normal text.

  • Change the dependency name.

  • Ignore the numbering in headings.

Image Removed
Image Added

After inserting the macro and publishing the document, here is my requirement again:

Image Removed
Image Added


In headings

You can ignore the numbered headings by passing a regular expression specifying the numbering format.

My headings:

Image Removed
Image Added

will get saved as:

Image Removed

tip
Image Added

Here are a few common ways to number headings and their regexes:

Numbering

Example

Regex

Decimal

1.2.

^(\d+\.)+\s*

ISO-2145

1.2

^(\d+\.?)+\s*

Lower-latin

a.b.

^([a-z]+\.?)+\s*

Upper-latin

A.B.

^([A-Z]+\.?)+\s*

Upper-roman

I.II.III.

^([IVXLC]+\.?)+\s*