Mutation
mutation CreateThreadLink($input: CreateThreadLinkInput!) {
createThreadLink(input: $input) {
threadLink {
id
threadId
sourceId
sourceType
title
description
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"threadId": "id"
}
}Response
{
"data": {
"createThreadLink": {
"threadLink": {
"id": "id",
"threadId": "id",
"sourceId": "string",
"sourceType": "string",
"title": "string",
"description": "string"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
createThreadLink
Links a thread to an external entity such as a Linear issue, Jira ticket, another Plain thread, or a Plain task. Provide exactly one of linearIssue, jiraIssue, plainThread, plainTask, or sourceId/sourceType for generic issue trackers. Returns an error with code thread_link_already_exists if the same link already exists for the thread.
MUTATION
createThreadLink(input: CreateThreadLinkInput!): CreateThreadLinkOutput!Arguments
input
required
Returns
threadLink
error
Mutation
mutation CreateThreadLink($input: CreateThreadLinkInput!) {
createThreadLink(input: $input) {
threadLink {
id
threadId
sourceId
sourceType
title
description
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"threadId": "id"
}
}Response
{
"data": {
"createThreadLink": {
"threadLink": {
"id": "id",
"threadId": "id",
"sourceId": "string",
"sourceType": "string",
"title": "string",
"description": "string"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

