Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
This routine is available starting with SIL Engineā„¢ 2.5.10 / 2.6.2.This routine is available for Jira server and cloud deployment options.
Info
titleAvailability
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

getCommentById(id);

...

Package

...

Parameter name

...

Type

...

Alias

Pkg Usage

Description

...

Excerpt

...

Yes for Jira cloud

...

The key of the issue, this parameter exists for the cloud deployment option only.

Note

On the server version, the issue key parameter doesn't exist, while on the cloud version it is mandatory, and the order of the parameters should be as follows:
(issueKey, commentId)

...

commentId

...

number

...

Yes

...

Id of the issue comment

Description

Excerpt
hiddentrue
Gets all the comment properties for a given id.

Gets all the comment properties for a given id.

...

Return type

JComment

The comment representation with the following keys:

...

Key name

...

Description

...

id

...

Id of the issue comment.

...

Example

...

Parameters

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

Parameter name

Type

Required

Description

commentId

Number

Yes

Id of the issue comment

Return Type

JComment

true

Example

Code Block
number [] arr = getAllCommentIds(argv["key"]);
for(number x in arr) {
 JComment cmt = getCommentById(x);
 runnerLog("Got comment:" + cmt["text"]);
}

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "jiracustomfield_comment_routine" and space = currentSpace ( )
labelsjiraarray_comment_routineroutines