{"record":{"id":"725425d4a7ac9722","repo":"OtterMind/Chat2DB","slug":"project-status-option-not-found-status","errorCode":null,"errorMessage":"Project Status option not found: ${status}","messagePattern":"Project Status option not found: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"script/github/sync-community-project.js","lineNumber":176,"sourceCode":"\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}) {\n          item { id }\n        }\n      }\n    `, { project: this.projectId, content: content.id });\n    const item = { id: data.addProjectV2ItemById.item.id, content };\n    this.itemsByContentId.set(content.id, item);\n    return item;\n  }\n\n  async setStatus(content, status) {\n    const optionId = this.statusOptions.get(status);\n    if (!optionId) throw new Error(`Project Status option not found: ${status}`);\n    const item = await this.ensureItem(content);\n    await this.client.graphql(`\n      mutation SetCommunityProjectStatus($project: ID!, $item: ID!, $field: ID!, $option: String!) {\n        updateProjectV2ItemFieldValue(input: {\n          projectId: $project,\n          itemId: $item,\n          fieldId: $field,\n          value: {singleSelectOptionId: $option}\n        }) { projectV2Item { id } }\n      }\n    `, {\n      project: this.projectId,\n      item: item.id,\n      field: this.statusFieldId,\n      option: optionId,\n    });\n    console.log(`set #${content.number} ${content.kind || 'item'} to ${status}`);\n  }","sourceCodeStart":158,"sourceCodeEnd":194,"githubUrl":"https://github.com/OtterMind/Chat2DB/blob/5ee1e990e73fbcae1969dc554be254fedb3ab888/script/github/sync-community-project.js#L158-L194","documentation":"Error \"Project Status option not found: ${status}\" thrown in OtterMind/Chat2DB.","triggerScenarios":"The script tried to set a Status value that is not one of the options defined on the project's Status field.","commonSituations":"See trigger scenarios.","solutions":["Add the missing option to the project's Status field, or map the incoming status to an existing option before syncing."],"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"}