Back to  commentHelper

Signature

HelpercommentHelper
Signature
addComment(String body, List comments)
Description

Adds a custom made comment to the provided list.

Introduced in0.10

Example use

issue.comments = commentHelper.addComment("Resolution changed to done",issue.comments)

Comments

  • The addComment is an utility function which
    • creates a comment object
    • sets the body to the provided function argument
    • adds the comment to the provided list
  • The author of the comment is the proxy user.
  • When the body argument is empty, no comment will be created.

See Also


Back to  commentHelper