From 69369f39b46abf5aa92c3d2fb4bb6ef69593d715 Mon Sep 17 00:00:00 2001 From: Praneeth Shetty Date: Wed, 14 Aug 2024 13:24:34 +0530 Subject: [PATCH] fixing project mapping and adding dueDate --- packages/api/src/ticketing/ticket/services/linear/mappers.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/api/src/ticketing/ticket/services/linear/mappers.ts b/packages/api/src/ticketing/ticket/services/linear/mappers.ts index 05cdd4639..6d209c556 100644 --- a/packages/api/src/ticketing/ticket/services/linear/mappers.ts +++ b/packages/api/src/ticketing/ticket/services/linear/mappers.ts @@ -43,12 +43,11 @@ export class LinearTicketMapper implements ITicketMapper { title: source.name, description: source.description ? source.description : null, // Passing new Field to retreive repositroy info to add ticket to that repo - project: source.collections ? source.collections[0] as string : null, + project: { id: source.collections ? await this.utils.getCollectionRemoteIdFromUuid(source.collections[0] as string) : null }, team: { id: await this.utils.getTeamRemoteIdFromUuid(source.field_mappings["team_id"]) }, + dueDate: source.due_date.toISOString(), }; - - if (source.assigned_to && source.assigned_to.length > 0) { const data = await this.utils.getAsigneeRemoteIdFromUserUuid( source.assigned_to[0],