set_work_package_watcher
Add or remove a watcher on a work package by setting watching to true or false, with preview and confirmation before applying changes.
Instructions
Add/remove a watcher on a work package.
watching=true adds the watcher; watching=false removes it. The two previews are NOT symmetric: watching=true's preview looks up and returns the user's summary (result is populated; whether the user already watches is not checked); watching=false's preview makes no extra lookup and always returns result=null.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"work_package_id": "<work_package_id>",
"user_id": "<user_id>",
"watching": "<watching>"
},
"name": "set_work_package_watcher"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | false: preview only, nothing changes. true: applies it; get the user's approval of the preview first. | |
| user_id | Yes | ||
| watching | Yes | ||
| work_package_id | Yes | Work package id (e.g. 952) or display id (e.g. "PROJ-51"), not the bare number 51. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ready | Yes | ||
| state | Yes | ||
| action | Yes | ||
| result | Yes | ||
| message | Yes | ||
| watcher_user_id | Yes | ||
| work_package_id | Yes | ||
| validation_errors | Yes |