Function: removeWatcher()
ts
function removeWatcher(
client,
parameters,
options?
): Promise<void>;Defined in: src/cloud/api/issueWatchers.ts:119
Deletes a user as a watcher of an issue.
This operation requires the Allow users to watch issues option to be ON. This option is set in General configuration for Jira. See Configuring Jira application options for details.
Permissions required:
- Browse projects project permission for the project that the issue is in.
- If issue-level security is configured, issue-level security permission to view the issue.
- To remove users other than themselves from the watchlist, Manage watcher list project permission for the project that the issue is in.
Parameters
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { accountId: string; issueIdOrKey: string; } | - |
parameters.accountId | string | The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5. Required. |
parameters.issueIdOrKey? | string | The ID or key of the issue. |
options? | RequestOptions | - |
Returns
Promise<void>