Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

editComment(commentIdissueKey, comment_id, comment[, securityLevel, dispatchEvent])

Package

Alias

Pkg Usage

Description

...

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

commentId

Number

Yes

Id of the issue comment.

comment

String

Yes

Text that will be post on the selected comment.

securityLevel

String

No

Security level of comment. Can be a group or a project role.

dispatchEvent

Boolean

No

If set to false, the issue comment edited event will not be triggered. Default value is true.

Return Type

/wiki/spaces/AA/pages/351830229JComment

The comment representation with the following keys:

...

Example

Example 1

Code Block
string newComm = "This comment was edited.";
return editComment(11801, newComm);

Edits the comment with id 11801 with the specified text.

Example 2

Code Block
languagejs
string newComm = "This comment was edited.";
return editComment(11801, newComm, false);

Edits the comment with id 11801 with the specified text, the issue comment edited event will not be triggered.

Example 3

...

text

...

Edits a comment by adding new text to the old one and that can be viewed only by "Developers".

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "comment_routinefunction" and space = currentSpace ( )
labelsarray_routinesfunctions