Create a relation between two cards
create_card_relationLink two Targetprocess cards by creating a master-slave relation with a named relation type, such as “Depends on,” to model dependencies between user stories, bugs, or features.
Instructions
Create a relation between two TP cards (UserStory, Bug, Feature, etc.). The Master is the source of the relation and the Slave is the target — e.g. for a "Depends on" relation, the Slave depends on the Master (Master must be done first). NOTE: relationType is matched by name against this instance's relation types. If unsure of the exact name, call "get_relation_types" first. The handler resolves the name to its ID before creating the relation.
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": {
"masterId": "<masterId>",
"slaveId": "<slaveId>"
},
"name": "create_card_relation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slaveId | Yes | Slave card ID — the target of the relation (e.g. 145790) | |
| masterId | Yes | Master card ID — the source of the relation (e.g. 145789) | |
| relationType | No | Relation type name as defined in this instance (e.g. "Depends on", "Relate to"). Resolve exact names via "get_relation_types". Defaults to "Depends on". |