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
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { expand?: string; issueIdOrKey: string; maxResults?: string; orderBy?: string; startAt?: string; } | - |
parameters.expand? | string | Optional flags: renderedBody (provides body rendered in HTML) |
parameters.issueIdOrKey? | string | Issue id or key |
parameters.maxResults? | string | How many results on the page should be included. Defaults to 50. |
parameters.orderBy? | string | Ordering of the results |
parameters.startAt? | string | The page offset, if not specified then defaults to 0 |
options? | RequestOptions | - |
Returns
Promise<{ [key: string]: unknown; comments?: object[]; maxResults?: number; startAt?: number; total?: number; }>