Skip to content

gh issue create errors after successful creation when issue type can't be set #13804

Description

@LangLangBart

Describe the bug

gh issue create shows an error message with "does not have the correct
permissions to execute UpdateIssueIssueType" - even though the issue was
created successfully. Occurs only when you dont have the right permissions on
the repo.

Affected version

gh version 2.96.0 (2026-07-02)

Steps to reproduce the behavior

  1. gh issue create --repo on a repo where you cant set the type
  2. See the error

Expected vs actual behavior

Expected: Issue created, no error message.

Actual: Issue created, then X operation failed... GraphQL: does not
have the correct permissions to execute UpdateIssueIssueType.

Logs

gh issue create --repo cli/cli

Creating issue in cli/cli

? Title (required) `gh issue create` errors after successful creation when issue type can't be set
? Choose a template 🐛 Bug report
? Body <Received>
? Issue type Bug
? What's next? Submit

X operation failed. To restore: gh issue create --recover /var/folders/n6/x5dgkb0j4mncg9_0l47pyzr80000gn/T/gh2543392225.json

GraphQL: LangLangBart does not have the correct permissions to execute `UpdateIssueIssueType` (updateIssueIssueType)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggh-issuerelating to the gh issue commandpriority-3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions