Skip to content

Function: getComments() ​

ts
function getComments(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  comments?: object[];
  maxResults?: number;
  startAt?: number;
  total?: number;
}>;

Defined in: src/server/api/issues.ts:552

Returns all comments for an issue. Results can be ordered by the 'created' field which means the date a comment was added.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ expand?: string; issueIdOrKey: string; maxResults?: string; orderBy?: string; startAt?: string; }-
parameters.expand?stringOptional flags: renderedBody (provides body rendered in HTML)
parameters.issueIdOrKey?stringIssue id or key
parameters.maxResults?stringHow many results on the page should be included. Defaults to 50.
parameters.orderBy?stringOrdering of the results
parameters.startAt?stringThe page offset, if not specified then defaults to 0
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; comments?: object[]; maxResults?: number; startAt?: number; total?: number; }>