Filter all "real" requirements in the requirements editor

23 visualizzazioni (ultimi 30 giorni)
How can I create a view in the Requirements Editor that filters and displays only the "real" requirements? I want to exclude headings, chapters, and other non-requirement items, and only show elements that have a value in the "Req ID" column, as this indicates they are actual requirements.

Risposta accettata

Alex Howard
Alex Howard il 27 Nov 2024 alle 14:57
Modificato: Alex Howard il 27 Nov 2024 alle 16:01
Hi Matteo,
It sounds like you're trying to use filters in the Requirements Editor. There might be multiple filter criteria that you can use to show only the requirements that you want to. To accomplish this, you should use a view in the Requirements Editor and then create a requirements filter for the view. For more information, see Configure Views in the Requirements Editor.
You might be able to define a filter that only shows requirements that have a certain type. For example, this filter only shows requirements that have the type set to Functional:
{"ReqType","Functional"};
It sounds like you're trying to create a filter for requirements that have a non-empty Id property. I'm not familiar with a configuration where some requirements have an empty value for the Id property, but if that's the case, you might be able to use a requirements filter like this to only show those requirements that have a non-empty value for the Id property:
{"Id:~=",""}
This filter uses the PropertyOperator syntax to filter using an operator or regular expression.
Keep in mind that you can define filters that use built-in properties of the slreq.Requirement class in addition to custom attributes and stereotype properties. For example, this filter shows only requirements that have a non-empty value for a custom attribute called MyCustomAttribute.
{"MyCustomAttribute:~=",""}
Let me know if that helps!

Più risposte (0)

Prodotti


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by