OtterMind/Chat2DB · error · Error
Project Status field was not found.
Error message
Project Status field was not found.
What it means
Error "Project Status field was not found." thrown in OtterMind/Chat2DB.
Source
Thrown at script/github/sync-community-project.js:146
nodes {
id
content {
... on Issue { id number state }
... on PullRequest { id number state isDraft merged }
}
}
pageInfo { hasNextPage endCursor }
}
}
}
}
`, { owner: this.owner, number: this.projectNumber, cursor });
const project = data.organization?.projectV2;
if (!project) throw new Error(`Project ${this.owner}/${this.projectNumber} was not found.`);
if (firstPage) {
this.projectId = project.id;
const statusField = project.fields.nodes.find((field) => field?.name === 'Status');
if (!statusField) throw new Error('Project Status field was not found.');
this.statusFieldId = statusField.id;
this.statusOptions = new Map(statusField.options.map((option) => [option.name, option.id]));
firstPage = false;
}
for (const item of project.items.nodes) {
if (item.content?.id) this.itemsByContentId.set(item.content.id, { ...item, content: item.content });
}
hasNextPage = project.items.pageInfo.hasNextPage;
cursor = project.items.pageInfo.endCursor;
} while (hasNextPage);
}
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}) {View on GitHub (pinned to 5ee1e990e7)
Solutions
- Add a single-select field named Status to the GitHub project, or adjust the script's expected field name to match the board.
When it happens
Trigger: The project was found but none of its fields matched the expected Status single-select field.
Common situations: See trigger scenarios.
AI-assisted analysis of OtterMind/Chat2DB@5ee1e990e7 (2026-08-14).
Data as JSON: /api/errors/ea8cb2363f719d74.
Report an issue: GitHub.