Skip to content

How to get iteration-id #10301

@MichaMican

Description

@MichaMican

Describe the feature or problem you’d like to solve

I want to set the iteration via github cli through the usage of gh project item-edit - for this to work i need th iteration-id - however i am not able to find any source where i get the ids of iterations via gh cli.
When calling gh project item-list no iteration id is returned either:

Image

Proposed solution

either this should be returned with the field-list (Single select fields return their options there aswell) or another command should be introduced (e.g. iteration-list) to get the iterations. Also it would be great if item-list would also return its iteration

Additional context

gh copilot suggest suggested gh api projects/{project-id}/iterations --jq '.[0].iterationId' however i get a 404 back when trying to execute this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIgh-projectrelating to the gh project commandhelp wantedContributions welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions