editComment

editComment

Description

Edits a comment with the specified id and text. Optional, you can edit the security level for comment. Returns the comment representation after the edit.

Syntax

editComment(issueKey, commentId, comment[, securityLevel])

Package

 

Alias

 

Pkg Usage

 

Parameters

Parameter name

Type

Required

Description

Parameter name

Type

Required

Description

issueKey

String

Yes

Key of the selected issue.

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.

Return Type

JComment

The comment representation with the following keys:

Example

Example 1

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

Edits the comment with id 11801 with the specified text.

See also

Need support? Create a request with our support team.

Copyright © 2005 - 2026 Appfire | All rights reserved.