Skip to content

milestones create fails with $projectId of required type String! was not provided #46

@iamfj

Description

@iamfj

Description

The milestones create command fails when attempting to create a project milestone. The GraphQL variables are not being passed correctly to the mutation.

Steps to Reproduce

linearis milestones create "My Milestone" --project "My Project"

Expected Behavior

A new milestone is created under the specified project.

Actual Behavior

{
  "error": "GraphQL request failed: Variable \"$projectId\" of required type \"String!\" was not provided."
}

Root Cause

In the milestone service, the GraphQL variables are passed as a nested { input } object, but the CreateProjectMilestone mutation expects $projectId, $name, $description, and $targetDate as individual top-level variables.

The service wraps them in { input: { projectId, name, ... } } instead of passing { projectId, name, ... } directly.

Environment

Metadata

Metadata

Assignees

Labels

WIPIn the works!bugSomething isn't workingnext-releaseThis issue will be resolved in the next release.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions