create_issue_relation
Link two Redmine issues with a chosen relation type—such as blocks, duplicates, precedes, or relates—to track dependencies, duplicates, and sequencing in your project.
Instructions
Create a relation between two issues.
Args:
issue_id: Source issue ID (required)
issue_to_id: Target issue ID to relate to (required)
relation_type: Type of relation (required). Valid values:
- "relates" - Related to
- "duplicates" - Duplicates (source duplicates target)
- "duplicated" - Duplicated by (source is duplicated by target)
- "blocks" - Blocks (source blocks target)
- "blocked" - Blocked by (source is blocked by target)
- "precedes" - Precedes (source must finish before target)
- "follows" - Follows (source starts after target finishes)
- "copied_to" - Copied to
- "copied_from" - Copied from
delay: Optional delay in days (only for "precedes" or "follows" relations)
Returns:
Dictionary containing the created relation information including relation ID
Note:
Some relation types automatically create their inverse:
- "duplicates" creates "duplicated" on the other side
- "blocks" creates "blocked" on the other side
- "precedes" creates "follows" on the other side
The Redmine REST API has no update operation for relations.
To change an existing relation, delete it with
delete_issue_relation() and create a new one.
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": {
"issue_id": "<issue_id>",
"issue_to_id": "<issue_to_id>",
"relation_type": "<relation_type>"
},
"name": "create_issue_relation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delay | No | ||
| issue_id | Yes | ||
| issue_to_id | Yes | ||
| relation_type | Yes |