add-relation-to-story
Link stories together in Shortcut by establishing relationships like blocks, duplicates, or relates to connections between project management items.
Instructions
Add a story relationship to a story
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storyPublicId | Yes | The public ID of the story | |
| relatedStoryPublicId | Yes | The public ID of the related story | |
| relationshipType | No | The type of relationship | relates to |
Input Schema (JSON Schema)
{
"properties": {
"relatedStoryPublicId": {
"description": "The public ID of the related story",
"exclusiveMinimum": 0,
"type": "number"
},
"relationshipType": {
"default": "relates to",
"description": "The type of relationship",
"enum": [
"relates to",
"blocks",
"blocked by",
"duplicates",
"duplicated by"
],
"type": "string"
},
"storyPublicId": {
"description": "The public ID of the story",
"exclusiveMinimum": 0,
"type": "number"
}
},
"required": [
"storyPublicId",
"relatedStoryPublicId"
],
"type": "object"
}