Skip to content

Function: addWatcher() ​

ts
function addWatcher(
   client, 
   parameters, 
   options?
): Promise<void>;

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

Adds a user to an issue's watcher list.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ body?: string; issueIdOrKey: string; userName?: string; }-
parameters.body?string-
parameters.issueIdOrKey?stringIssue id or key
parameters.userName?stringThe name of the user to add to the watcher list. If no name is specified, the current user is added.
options?RequestOptions-

Returns ​

Promise<void>