From 9cab33d69305083ca3fa2c949337f824d37a4430 Mon Sep 17 00:00:00 2001 From: Praneeth Shetty Date: Wed, 14 Aug 2024 13:23:45 +0530 Subject: [PATCH] fixing project mapping and adding dueDate --- packages/api/src/ticketing/ticket/services/linear/mappers.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/api/src/ticketing/ticket/services/linear/mappers.ts b/packages/api/src/ticketing/ticket/services/linear/mappers.ts index 05cdd4639..50b7f1ecc 100644 --- a/packages/api/src/ticketing/ticket/services/linear/mappers.ts +++ b/packages/api/src/ticketing/ticket/services/linear/mappers.ts @@ -43,8 +43,9 @@ 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(), };