Add comments to referenced requirements
newComment = addComment(ref,myComment)
newComment — New comment data
New comment data, returned as a structure containing these fields:
CommentedBy — Name of individual or organization who added comment
Name of the individual or organization who added the comment, returned as a character vector.
CommentedOn — Date that comment was added
Date that the comment was added, returned as a
CommentedRevision — Comment revision number
Comment revision number, returned as an
Text — Comment text
Comment text, returned as a character vector.
Add Comments to Referenced Requirements
This example shows how to add comments to referenced requirements.
Load the requirement set
rs = slreq.load("crs_req");
Find the first referenced requirement in the set.
ref = find(rs,Index=1);
Add a comment to the referenced requirement.
newComment = addComment(ref,"My new comment.");
You can also add a comment by using the Requirements Editor. Select a referenced requirement and, in the right pane, under Comments, click Add Comment.
Introduced in R2018b