Skip to content
Discussion options

You must be logged in to vote
  1. projectIds in createIssue is for Classic Projects
    The projectIds field in the createIssue mutation is only compatible with classic GitHub Projects (not ProjectsV2).
    ProjectsV2 uses a different system and requires the addProjectV2ItemById mutation to associate issues. This explains the NOT_FOUND error when using a ProjectsV2 ID in projectIds.

  2. ProjectsV2 Requires a Separate Step
    GitHub’s UI/API intentionally separates issue creation and ProjectsV2 binding. This is why you observe two calls in the web portal:
    Create the issue (no ProjectsV2 association).
    Use addProjectV2ItemById to link the issue to ProjectsV2.
    There is no way to link to ProjectsV2 in a single step during issue creation.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@JeelGajera
Comment options

Answer selected by JeelGajera
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apps API and Webhooks Discussions related to GitHub's APIs or Webhooks Question Ask and answer questions about GitHub features and usage inactive This discussion has been automatically marked as inactive. This was formerly labeled stale.
2 participants