Search code examples
githubproject

How to add new issue to a milestone in github?


In my private github repository, I've created a new milestone. I want to add new issues to it.

enter image description here

I click on New issue button but it redirects to the following page: enter image description here

What should I do?


Solution

  • As a workaround, check if using the GitHub CLI gh would help.

    From Creating an issue with GitHub CLI:

    To create an issue, use the gh issue create subcommand.
    To skip the interactive prompts, include the --body and the --title flags.

    gh issue create --title "My new issue" --body "Here are more details."
    

    You can also specify assignees, labels, milestones, and projects.

    gh issue create --title "My new issue" --body "Here are more details." \
                    --assignee @me,monalisa --label "bug,help wanted" \
                    --project onboarding --milestone "learning codebase"