Add Issue Relationship
add_relationshipAdd a relationship between two MantisBT issues by specifying source and target IDs and the relationship type (duplicate, related, parent_of, child_of, has_duplicate).
Instructions
Add a relationship between two MantisBT issues.
Relationship types — use either type_id (numeric) or type_name (string):
0 / "duplicate_of" — this issue is a duplicate of target
1 / "related_to" — this issue is related to target
2 / "parent_of" — this issue depends on target (target must be done first); alias: "depends_on"
3 / "child_of" — this issue blocks target (target can't proceed until this is done); alias: "blocks"
4 / "has_duplicate" — this issue has target as a duplicate
Directionality note: "A child_of B" means A blocks B. "A parent_of B" means A depends on B.
Dash variants (e.g. "related-to") are also accepted for type_name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_id | Yes | The source issue ID (the one the relationship is added to) | |
| target_id | Yes | The target issue ID | |
| type_id | No | Relationship type ID: 0=duplicate_of, 1=related_to, 2=parent_of (depends on), 3=child_of (blocks), 4=has_duplicate. Use either type_id or type_name. | |
| type_name | No | Relationship type name as alternative to type_id. Accepted: "duplicate_of", "related_to", "parent_of" (or "depends_on"), "child_of" (or "blocks"), "has_duplicate". Dash variants (e.g. "related-to") also work. |