PHANTOM
🇮🇳 IN
Skip to content

gh project item-edit Can't Edit Only Draft Issue Title or Body #12726

@dsanders11

Description

@dsanders11

Describe the bug

If you're using gh project item-edit to edit the title or body of a draft issue, --title without --body will clear the body, and --body without --title causes an error.

Affected version

gh version 2.68.1 (2025-03-06)

Steps to reproduce the behavior

  1. Type gh project item-edit --project-id <PROJECT_ID> --id <DRAFT_ISSUE_ID> --body foobar
  2. See error: "GraphQL: Title can't be blank (updateProjectV2DraftIssue)"

Expected vs actual behavior

It's expected that the two options should be usable independently, but that's not the actual behavior at the moment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageneeds to be reviewed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions