{"record":{"id":"ea8cb2363f719d74","repo":"OtterMind/Chat2DB","slug":"project-status-field-was-not-found","errorCode":null,"errorMessage":"Project Status field was not found.","messagePattern":"Project Status field was not found\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"script/github/sync-community-project.js","lineNumber":146,"sourceCode":"              nodes {\n                id\n                content {\n                  ... on Issue { id number state }\n                  ... on PullRequest { id number state isDraft merged }\n                }\n              }\n              pageInfo { hasNextPage endCursor }\n            }\n          }\n        }\n      }\n      `, { owner: this.owner, number: this.projectNumber, cursor });\n      const project = data.organization?.projectV2;\n      if (!project) throw new Error(`Project ${this.owner}/${this.projectNumber} was not found.`);\n      if (firstPage) {\n        this.projectId = project.id;\n        const statusField = project.fields.nodes.find((field) => field?.name === 'Status');\n        if (!statusField) throw new Error('Project Status field was not found.');\n        this.statusFieldId = statusField.id;\n        this.statusOptions = new Map(statusField.options.map((option) => [option.name, option.id]));\n        firstPage = false;\n      }\n      for (const item of project.items.nodes) {\n        if (item.content?.id) this.itemsByContentId.set(item.content.id, { ...item, content: item.content });\n      }\n      hasNextPage = project.items.pageInfo.hasNextPage;\n      cursor = project.items.pageInfo.endCursor;\n    } while (hasNextPage);\n  }\n\n  async ensureItem(content) {\n    const existing = this.itemsByContentId.get(content.id);\n    if (existing) return existing;\n    const data = await this.client.graphql(`\n      mutation AddCommunityProjectItem($project: ID!, $content: ID!) {\n        addProjectV2ItemById(input: {projectId: $project, contentId: $content}) {","sourceCodeStart":128,"sourceCodeEnd":164,"githubUrl":"https://github.com/OtterMind/Chat2DB/blob/5ee1e990e73fbcae1969dc554be254fedb3ab888/script/github/sync-community-project.js#L128-L164","documentation":"Error \"Project Status field was not found.\" thrown in OtterMind/Chat2DB.","triggerScenarios":"The project was found but none of its fields matched the expected Status single-select field.","commonSituations":"See trigger scenarios.","solutions":["Add a single-select field named Status to the GitHub project, or adjust the script's expected field name to match the board."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ee1e990e73fbcae1969dc554be254fedb3ab888","analyzedAt":"2026-08-14T07:05:03.077Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}