Unlink tasks
unlinkRemoves a link between two tasks by key and relationship kind; missing links are refused and closed-task parent/blocks links remain.
Instructions
Removes a link and files link_removed in both cases.
A link is removed from either side and under either name of its kind: blocks
from TRK-1 to TRK-7 and blocked_by from TRK-7 to TRK-1 are the same
link. On a closed task parent and blocks stay (task_closed), relates is
removed. A link that does not exist is refused with link_not_found.
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": {
"key": "<key>",
"kind": "<kind>",
"other": "<other>"
},
"name": "unlink"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Task key `PROJECT-N`, case-insensitive; a previous key of a moved task addresses it as well. An unknown key is refused with `task_not_found` | |
| kind | Yes | Role of the task `key` toward the task `other`: `link(key='TRK-1', kind='blocks', other='TRK-7')` means TRK-1 blocks TRK-7, and the card of TRK-7 shows the same link as `blocked_by` | |
| other | Yes | Key of the task on the other side of the link |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| entry | Yes | Number of the `link_added` or `link_removed` entry in the case of `key` | |
| other_entry | Yes | Number of the same entry in the case of `other` |