Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

385 B
Raw Blame
import type { CustomField } from '@/lib/api/endpoints/customFields';

// The project scaffold carries every field of the project; a detail surface takes
// the project-wide ones plus the issue type's own.
export function fieldDefsForType(fields: CustomField[], typeId: number | null): CustomField[] {
  return fields.filter((f) => f.issueTypeId == null || f.issueTypeId === typeId);
}