getAllCommentIds
Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !
Availability
- 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.
Syntax
getAllCommentIds(key);
Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
key | String | Yes | Key of the issue. |
Description
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.
Return type
number []
Ids of the comments on the issue represented by key parameter.
Example
number [] arr = getAllCommentIds(argv["key"]); for(number x in arr) { string [] cmt = getCommentById(x); runnerLog("Got comment:" + cmt["text"]); }
See also