Function getCommentsByIssue

  • Get comments by defined issueId (or issueKey).

    Parameters

    Returns Promise<any[]>

    Example

    await SR.jira.getCommentsByIssue('KEY-1')
    // expected result:
    // {
    // comments: [
    // id, author, body, renderedBody: "<p>Hello World</p>", created, updated
    // ]
    // }

    Example

    // Without renderedBody (memory optimization)
    await SR.jira.getCommentsByIssue(['KEY-1', 'KEY-2'], { expandRenderedBody: false })