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

getAllCommentIds(key);

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Gets all the comment ids that are already entered on an issue.

Gets all the comment ids that are already entered on an issue. Gets all the comment ids that are already entered on an issue. Unlike the getComment() routine, this routine returns what is already entered on the issue. Comments are guaranteed to be sorted from the oldest to the newest one. For instance the last comment is at the end of the array, first comment is the first in the list.

...

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

Parameter name

Type

Required

Description

key

String

Yes

Key of the issue.

Return Type

Number []

Ids of the comments on the issue represented by key parameter.

Example

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

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "comment_routine" and space = currentSpace ( )
labelsarray_routines