You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
linearis issues reply <root-thread-id> --body "..." always fails with a GraphQL validation error. The reply mutation builds a CommentCreateInput with only parentId + body, omitting the parent entity id (issueId/projectId/initiativeId) that Linear requires even on threaded replies.
{
"error": "GraphQL request failed: Argument Validation Error - Exactly one of projectUpdateId, initiativeUpdateId, postId, documentContentId, projectId, initiativeId or issueId must be defined."
}
issues discuss (root comment) works fine, because startIssueDiscussion passes issueId. Only the reply path is broken.
exportasyncfunctionreplyToDiscussion(client,input){awaitassertRootDiscussionThread(client,input.threadId,input.entityKind);constresult=awaitclient.request(StartDiscussionDocument,{input: {parentId: input.threadId,// no entity id alongside parentIdbody: input.body,},});
...
}
Linear's CommentCreateInput requires exactly one entity id (issueId etc.) in addition toparentId for a threaded reply. The CLI sends only parentId.
Suggested fix (low effort - the data is already fetched)
assertRootDiscussionThread already returns the comment via GetDiscussionCommentContext, which selects issueId, projectId, and initiativeId. Capture its return value and forward the entity id:
Thanks for the detailed report and the fix in #227 — forwarding the parent entity id (issueId/projectId/initiativeId) on threaded replies so they stop hitting the "Exactly one of … must be defined" validation error. This is now rolled out on the prerelease channel (npm i -g linearis@next, currently 2026.6.0-next.5) — would love if you could confirm it on your end. Planning to promote it to stable soon (#231). Happy for any feedback!
Activity
linear commentedon Jun 10, 2026
LIN-153
fix(discussions): forward parent entity id when replying to a thread
chore(release): 2026.6.0-next.1 [skip ci]
iamfj commentedon Jul 2, 2026
Thanks for the detailed report and the fix in #227 — forwarding the parent entity id (issueId/projectId/initiativeId) on threaded replies so they stop hitting the "Exactly one of … must be defined" validation error. This is now rolled out on the prerelease channel (
npm i -g linearis@next, currently2026.6.0-next.5) — would love if you could confirm it on your end. Planning to promote it to stable soon (#231). Happy for any feedback!chore(release): 2026.6.0 [skip ci]