Skip to content

Commit

Permalink
fixing project mapping and adding dueDate
Browse files Browse the repository at this point in the history
  • Loading branch information
ganimtron-10 committed Aug 14, 2024
1 parent d6767c1 commit 69369f3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/api/src/ticketing/ticket/services/linear/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 69369f3

Please sign in to comment.