Add comments to links
newComment = addComment(myLink,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 Links
Load the requirement set
basicReqSet, which also loads the link set
rs = slreq.load("basicReqSet"); myLinkSet = slreq.find(Type="LinkSet");
Get a handle to the link from the link set.
myLink = getLinks(myLinkSet);
Add a comment to the link.
newComment = addComment(myLink,"My new comment.");
You can also add a comment by using the Requirements Editor. Select a link and, in the right pane, under Comments, click Add Comment.
Introduced in R2018a