addComment(String body, List comments ) or addComment(String body, Boolean sync, List comments )
The addComment is a utility function that helps to do the following action on a comment:
- create a comment with the comment body set directly in the sync rules
- set the body to the provided function argument
The author of the comment is the proxy user. If the body argument is empty, the comment will be not synchronized.
Add a comment with the following text to an issue "Resolution changed to done" . The added comment will be synced to the remote side.
Usually, this method is used in combination with a condition block, for example :
Add a comment with the following text "Resolution changed to done" if the remote issue status is Done. Otherwise, sync comments in-between.
The added comment will be synced to the remote side.
Don't sync the added comment to the remote side
Add a comment to the issue and don't sync it to the remote side using the sync parameter