Skip to content

issues create / issues update with --assignee fails when passing a name instead of UUID #47

@iamfj

Description

@iamfj

Description

The --assignee option on issues create and issues update does not resolve human-friendly identifiers (name, email) to a UUID before passing the value to the GraphQL API. All other identifier options (team, project, labels, cycle, status, parent) go through a resolver, but assignee is passed through as-is.

Steps to Reproduce

linearis issues create "Fix login bug" --team ENG --assignee "John Doe"

Expected Behavior

The assignee name is resolved to a user UUID and the issue is created with the correct assignee.

Actual Behavior

{
  "error": "GraphQL request failed: Argument Validation Error - assigneeId must be a UUID."
}

Root Cause

In the issues command, the --assignee value is assigned directly to input.assigneeId without resolution:

if (options.assignee) {
  input.assigneeId = options.assignee; // raw string, no resolution
}

A resolveUserId() resolver is missing. All other identifiers (team, project, labels, cycle, status) have dedicated resolvers that convert human-friendly input to UUIDs, but no equivalent exists for users/assignees.

Environment

Metadata

Metadata

Assignees

Labels

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