Skip to end of banner
Go to start of banner

getAllCommentIds

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Description

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 getCommentById() function, this function 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.

Parameters

Return Type

Number []

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

Example

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

See also

Filter by label

There are no items with the selected labels at this time.

  • No labels