OtterMind/Chat2DB · error · Error
Project Status option not found: ${status}
Error message
Project Status option not found: ${status} What it means
Error "Project Status option not found: ${status}" thrown in OtterMind/Chat2DB.
Source
Thrown at script/github/sync-community-project.js:176
async ensureItem(content) {
const existing = this.itemsByContentId.get(content.id);
if (existing) return existing;
const data = await this.client.graphql(`
mutation AddCommunityProjectItem($project: ID!, $content: ID!) {
addProjectV2ItemById(input: {projectId: $project, contentId: $content}) {
item { id }
}
}
`, { project: this.projectId, content: content.id });
const item = { id: data.addProjectV2ItemById.item.id, content };
this.itemsByContentId.set(content.id, item);
return item;
}
async setStatus(content, status) {
const optionId = this.statusOptions.get(status);
if (!optionId) throw new Error(`Project Status option not found: ${status}`);
const item = await this.ensureItem(content);
await this.client.graphql(`
mutation SetCommunityProjectStatus($project: ID!, $item: ID!, $field: ID!, $option: String!) {
updateProjectV2ItemFieldValue(input: {
projectId: $project,
itemId: $item,
fieldId: $field,
value: {singleSelectOptionId: $option}
}) { projectV2Item { id } }
}
`, {
project: this.projectId,
item: item.id,
field: this.statusFieldId,
option: optionId,
});
console.log(`set #${content.number} ${content.kind || 'item'} to ${status}`);
}View on GitHub (pinned to 5ee1e990e7)
Solutions
- Add the missing option to the project's Status field, or map the incoming status to an existing option before syncing.
When it happens
Trigger: The script tried to set a Status value that is not one of the options defined on the project's Status field.
Common situations: See trigger scenarios.
AI-assisted analysis of OtterMind/Chat2DB@5ee1e990e7 (2026-08-14).
Data as JSON: /api/errors/725425d4a7ac9722.
Report an issue: GitHub.