feat: custom fields per project
Text, number, date or option-list fields defined in the project settings (archived, never removed; their type is fixed once saved). Tickets hold them, edited in the side panel, listed under the title and filtered by option in the list view; also over GraphQL, REST (?field=ID:value) and MCP. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1666,12 +1666,29 @@ export interface components {
|
||||
name: string;
|
||||
archived: boolean;
|
||||
};
|
||||
/**
|
||||
* @description DATE values are YYYY-MM-DD
|
||||
* @enum {string}
|
||||
*/
|
||||
CustomFieldType: "TEXT" | "NUMBER" | "DATE" | "SELECT";
|
||||
CustomFieldDefinitionDto: {
|
||||
/** @example BROWSER */
|
||||
id: string;
|
||||
/** @example Navegador */
|
||||
name: string;
|
||||
/** @description DATE values are YYYY-MM-DD */
|
||||
type: components["schemas"]["CustomFieldType"];
|
||||
/** @description The choices of a SELECT field */
|
||||
options: string[];
|
||||
archived: boolean;
|
||||
};
|
||||
ProjectSettingsDto: {
|
||||
/** @description In board order */
|
||||
statuses: components["schemas"]["WorkflowStatusDto"][];
|
||||
transitions: components["schemas"]["StatusTransitionsDto"][];
|
||||
issueTypes: components["schemas"]["IssueTypeOptionDto"][];
|
||||
areas: components["schemas"]["AreaOptionDto"][];
|
||||
customFields: components["schemas"]["CustomFieldDefinitionDto"][];
|
||||
};
|
||||
ProjectDto: {
|
||||
/** Format: uuid */
|
||||
@@ -1788,12 +1805,33 @@ export interface components {
|
||||
/** @default false */
|
||||
archived: boolean;
|
||||
};
|
||||
CustomFieldDefinitionBodyDto: {
|
||||
/** @example BROWSER */
|
||||
id: string;
|
||||
/** @example Navegador */
|
||||
name: string;
|
||||
/** @description Cannot change once the field exists. DATE: YYYY-MM-DD */
|
||||
type: components["schemas"]["CustomFieldType"];
|
||||
/**
|
||||
* @description The choices of a SELECT field
|
||||
* @example [
|
||||
* "Chrome",
|
||||
* "Safari",
|
||||
* "Firefox"
|
||||
* ]
|
||||
*/
|
||||
options?: string[];
|
||||
/** @default false */
|
||||
archived: boolean;
|
||||
};
|
||||
ProjectSettingsBodyDto: {
|
||||
/** @description In board order. Values cannot be removed: archive them instead. */
|
||||
statuses: components["schemas"]["WorkflowStatusBodyDto"][];
|
||||
transitions: components["schemas"]["StatusTransitionsBodyDto"][];
|
||||
issueTypes: components["schemas"]["IssueTypeOptionBodyDto"][];
|
||||
areas: components["schemas"]["AreaOptionBodyDto"][];
|
||||
/** @description Absent: unchanged. Fields cannot be removed: archive them. */
|
||||
customFields?: components["schemas"]["CustomFieldDefinitionBodyDto"][];
|
||||
};
|
||||
/** @enum {string} */
|
||||
IssuePriority: "LOWEST" | "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
||||
@@ -1930,6 +1968,15 @@ export interface components {
|
||||
startDate: string | null;
|
||||
/** Format: date */
|
||||
dueDate: string | null;
|
||||
/**
|
||||
* @description Custom field id → value (only those set)
|
||||
* @example {
|
||||
* "BROWSER": "Safari"
|
||||
* }
|
||||
*/
|
||||
customFields: {
|
||||
[key: string]: string;
|
||||
};
|
||||
links: components["schemas"]["IssueLinkDto"][];
|
||||
attachments: components["schemas"]["AttachmentDto"][];
|
||||
/** @description People following it */
|
||||
@@ -2098,6 +2145,15 @@ export interface components {
|
||||
startDate?: string | null;
|
||||
/** Format: date */
|
||||
dueDate?: string | null;
|
||||
/**
|
||||
* @description Custom field id → value. Only the fields to change; null or '' clears one
|
||||
* @example {
|
||||
* "BROWSER": "Safari"
|
||||
* }
|
||||
*/
|
||||
customFields?: {
|
||||
[key: string]: string | null;
|
||||
};
|
||||
/**
|
||||
* @description A ticket type id of the project's settings
|
||||
* @example BUG
|
||||
@@ -2146,6 +2202,15 @@ export interface components {
|
||||
startDate?: string | null;
|
||||
/** Format: date */
|
||||
dueDate?: string | null;
|
||||
/**
|
||||
* @description Custom field id → value. Only the fields to change; null or '' clears one
|
||||
* @example {
|
||||
* "BROWSER": "Safari"
|
||||
* }
|
||||
*/
|
||||
customFields?: {
|
||||
[key: string]: string | null;
|
||||
};
|
||||
/**
|
||||
* @description A ticket type id
|
||||
* @example FEATURE
|
||||
@@ -4365,6 +4430,8 @@ export interface operations {
|
||||
dueFrom?: string;
|
||||
/** @description Due on or before this day */
|
||||
dueTo?: string;
|
||||
/** @description Custom values the tickets must hold, as FIELD:value. Repeat the parameter for several */
|
||||
field?: string[];
|
||||
/** @description RECENT (default): last updated first. RANK: backlog order. */
|
||||
sort?: components["schemas"]["IssueSort"];
|
||||
/** @description Matches key, title or description */
|
||||
|
||||
Reference in New Issue
Block a user