Add comments to justifications
newComment = addComment(jt,myComment)
adds a comment,
newComment = addComment(
myComment, to the justification
jt — Justification
Justification, specified as an
myComment — Comment text
string scalar | character vector
Comment text to add to the requirement, specified as a string scalar or character vector.
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 Justifications
This example shows how to add comments to justifications.
Load the requirement set
rs = slreq.load("crs_req_justs");
Get a handle to the first justification in the requirement set.
jt = find(rs,Index=5);
Add a comment to the justification.
newComment = addComment(jt,"My new comment.");
To add comments to requirements, use
slreq.Requirement.addComment. To add comments to referenced requirements, use
slreq.Reference.addComment.To add comments to links, use
You can also add a comment by using the Requirements Editor. Select a justification and, in the right pane, under Comments, click Add Comment.
Introduced in R2018b