Skip to end of banner
Go to start of banner

addComment

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Description

Posts a comment on the specified issue on behalf of the specified user. Returns a number representing the id of the comment.

Parameters

Return Type

Number

The returned number represents the id of the comment.

Examples

Example 1

addComment(key, currentUser(), "I have executed a transition.");

Adds a comment on the current issue, on behalf of the current user.

Example 2

addComment(key, currentUser(), "you can't see me", "Administrators");

Adds a comment on the current issue, on behalf of the current user, viewable only by "Administrators".

Example 3

addComment(key, currentUser(), "you can't see me", "Administrators", false);

Adds a comment on the current issue, on behalf of the current user, viewable only by "Administrators", that will not trigger the issue commented event.

See also

  • No labels