Info |
---|
|
- This routine is available starting with katl-commons 1.0.
- This routine is available for Jira server and cloud deployment options.
|
addComment(issue, username, comment)
or
addComment(issue, username, comment, securityLevel)
Tip |
---|
|
Starting with sil engine 4.8.0.3, "dispatchEvent" parameter was added. It allows to trigger or not the issue commented event. (Just for server) |
addComment(issue, username, comment, dispatchEvent)
...
Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | addComment(issue, username, comment[, | |
...
securityLevel, dispatchEvent]) | Package | | Alias | | Pkg Usage | |
|
Excerpt |
---|
|
SPosts a comment on the specified issue on behalf of the specified user. Returns a number representing the id of the comment. |
Posts a comment on the specified issue on behalf of the specified user. Returns a number representing the id of the comment.
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
issue key | String | Yes | Key of the selected issue. | user name | String | Yes | User name of the selected user. | comment | String | Yes | Comment that will be posted on the selected issue. | securityLevel | String | No | Security level of comment. | |
...
Security level can be a group or a role. |
|
...
...
Boolean | No | If set to false, the issue commented event will not be triggered. Default value is true. |
|
...
...
This parameter is available just on the server version.
...
Number
The returned number represents the id of the comment.
...
Code Block |
---|
addComment(key, currentUser(), "I have executed a transition.");
|
Adds a comment on the current issue, on behalf of the current user.
...
Code Block |
---|
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".
...
Code Block |
---|
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.
...
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "comment_routine" and space = currentSpace ( ) |
---|
labels | commentarray_routineroutines |
---|
|