task_relation_update
Creates or changes a relation between two tasks or bugs. The role is relative to the current task (key), with the names used in the task's relations: dependencies - the current task waits for the other; blockedTasks - the other waits for it; duplicateOf / duplicates; regressionOf / regressions; foundDuring / findings; related - neutral. For a bug, foundDuring is the task during which it was found and regressionOf the task that introduced the defect (by git history only). Without a relation of that role one is created (desc - explanation); an existing one gets newRole and desc. Moving it away from dependencies / blockedTasks unblocks the waiting task with notifications, as in the web app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Current task number — the one the role refers to | |
| desc | No | Explanation; null or empty string — remove; omitted — unchanged | |
| role | Yes | Relation role relative to the current task, as in its relations | |
| newRole | No | New role of an existing relation; omitted — unchanged | |
| otherKey | Yes | Related task or bug number |