Skip to content

Function: getVotes() ​

ts
function getVotes(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  hasVoted?: boolean;
  self?: string;
  voters?: object[];
  votes?: number;
}>;

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

A REST sub-resource representing the voters on the issue.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ issueIdOrKey: string; }-
parameters.issueIdOrKeystringIssue id or key
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; hasVoted?: boolean; self?: string; voters?: object[]; votes?: number; }>