Is there a Matlab command to change the custom attributes for requirements like status from the default Unset, so that I don't always have to do this manually via the editor?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I would like to automatically unlock, change and unlock the user-defined attributes such as the status of the requirement.
Is there a Matlab command for a script-controlled execution (with different commands)?
2 Kommentare
Jan
am 12 Mai 2022
Maybe it is not immediately clear to the readers, who do not work exactly in your field: "requirements" of what? The screenshot does not reveal this detail.
Antworten (1)
Pat Canny
am 13 Mai 2022
Thank you for your question!
% Load a requirement set file
rs = slreq.load('C:\MATLAB\My_Requirement_Set_1.slreqx');
% Find all referenced requirements in the requirement set
allRefs = find(rs, 'Type', 'Reference')
allRefs =
1×73 Reference array with properties:
Id
CustomId
Artifact
ArtifactId
Domain
UpdatedOn
CreatedOn
CreatedBy
ModifiedBy
IsLocked
Summary
Description
Rationale
Keywords
Type
SID
FileRevision
ModifiedOn
Dirty
Comments
% Unlock a referenced requirement
unlock(allRefs(25))
0 Kommentare
Siehe auch
Kategorien
Mehr zu Import, Update, and Export Requirements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!