Skip to content
Docs

Custom requirement attributes

Extend the requirement schema with per-project fields such as safety level or regulatory clause, validated on every create and update.

Every requirement has a built-in set of fields — statement, category, priority, status, owner. Custom attributes extend that schema per project with fields like a regulatory clause number, a safety integrity level or a customer-defined verification class, without waiting for a product change.

Where: sidebar Define → Requirements, tab Attributes · /p/<project>/requirements/attributes

What an attribute defines

  • Name — the internal key requirements store the value under, for example safety_level. Unique within the project.
  • Display name — what people see in the requirement editor, for example Safety Integrity Level.
  • Type — drives the input control and the validation:
TypeControlValidation options
TextFree textOptional regex pattern
NumberNumeric inputOptional min and max
EnumSingle choiceThe list of allowed values
Multi-enumSeveral choicesThe list of allowed values
BooleanToggle—
DateDate picker—
URLLinkMust be an http or https address
  • Required — when on, every requirement must supply a value before it can be saved.
  • Description — a short note shown next to the field in the editor.

Validation

Regex, min/max and enum membership are enforced on both create and update — on the server, and mirrored in the editor so you see the problem before you save. A value that breaks a rule, or a missing value on a required field, is rejected and the requirement does not save, so invalid data never lands. Values arriving through import, the API or the co-engineer go through the same checks.

Regex patterns are checked when you define the attribute; a pattern that could take pathologically long to evaluate is refused.

Walkthrough

1. Define the attribute

  1. Open the Attributes tab and add a new attribute.
  2. Pick a short name in lowercase snake_case and a readable display name.
  3. Choose a type and fill in its options: enum values, a regex, or a min/max range.
  4. Turn on Required only if every requirement must carry a value.
  5. Save. Defining attributes needs edit rights on the project.

2. Set values on requirements

The attribute now appears in every requirement's detail sheet. Open a requirement, fill in the field and save; validation runs as you save. On the All requirements tab you can show the attribute as a column and filter by it.

3. Use it downstream

Filter, sort and build saved views on the attribute, and surface it in exports and report templates.

Co-engineer prompts

Add a required enum attribute safety_level with values SIL0 to SIL4, then propose a value for every requirement in the Braking module with a one-line justification.

List the requirements that have no value for verification_class.

Tips

  • Pick the right type up front. Switching Text to Enum later means mapping existing free-text values onto the new choices.
  • Keep names short and stable. Names appear in exports and integrations; renaming them breaks downstream consumers.
  • Mark a field required only when it really is. A required field blocks saves on every requirement, including ones that predate the attribute.