feat: jira and synchro

This commit is contained in:
Julien Froidefond
2025-09-17 13:56:42 +02:00
parent 2f104109db
commit 625e8dba4b
24 changed files with 1821 additions and 140 deletions

View File

@@ -16,6 +16,14 @@ export interface AppConfig {
enableNotifications: boolean;
autoSave: boolean;
};
integrations: {
jira: {
enabled: boolean;
baseUrl?: string;
email?: string;
apiToken?: string;
};
};
}
// Configuration par défaut
@@ -32,6 +40,14 @@ const defaultConfig: AppConfig = {
enableDragAndDrop: process.env.NEXT_PUBLIC_ENABLE_DRAG_DROP !== 'false',
enableNotifications: process.env.NEXT_PUBLIC_ENABLE_NOTIFICATIONS === 'true',
autoSave: process.env.NEXT_PUBLIC_AUTO_SAVE !== 'false'
},
integrations: {
jira: {
enabled: Boolean(process.env.JIRA_BASE_URL && process.env.JIRA_EMAIL && process.env.JIRA_API_TOKEN),
baseUrl: process.env.JIRA_BASE_URL,
email: process.env.JIRA_EMAIL,
apiToken: process.env.JIRA_API_TOKEN
}
}
};

View File

@@ -35,6 +35,7 @@ export interface Task {
// Métadonnées Jira
jiraProject?: string;
jiraKey?: string;
jiraType?: string; // Type de ticket Jira: Story, Task, Bug, Epic, etc.
assignee?: string;
}
@@ -53,6 +54,11 @@ export interface KanbanFilters {
priorities?: TaskPriority[];
showCompleted?: boolean;
sortBy?: string;
// Filtres spécifiques Jira
showJiraOnly?: boolean;
hideJiraTasks?: boolean;
jiraProjects?: string[];
jiraTypes?: string[];
[key: string]: string | string[] | TaskPriority[] | boolean | undefined;
}
@@ -122,6 +128,9 @@ export interface JiraTask {
key: string;
name: string;
};
issuetype: {
name: string; // Story, Task, Bug, Epic, etc.
};
duedate?: string;
created: string;
updated: string;