Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Add a user as watcher

Adds a user to an issue’s watcher list.

POST/api/2/issue/{issueIdOrKey}/watchers
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

or
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Path parameters
issueIdOrKeystringrequired

Issue id or key

Query parameters
userNamestring

The name of the user to add to the watcher list. If no name is specified, the current user is added.

Request body
application/json
string
Responses
204

Returned if the watcher was added successfully.

400

Returned if a user name query parameter is not supplied.

401

Returned if the calling user does not have permission to add the watcher to the issue's list of watchers.

404

Returned if either the issue does not exist.

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'http://jira.example.com/rest/api/2/issue/string/watchers' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Content-Type: application/json' \
  -d '"string"'
Response
Returned if the watcher was added successfully.

Was this page helpful?