Skip to content

Commit ad024db

Browse files
committed
Pass fields to external service
1 parent 24bfbc6 commit ad024db

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

x-pack/plugins/security_solution/public/cases/containers/use_post_push_to_service.test.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ describe('usePostPushToService', () => {
6565
title: pushedCase.title,
6666
updatedAt: pushedCase.updatedAt,
6767
updatedBy: serviceConnectorUser,
68+
issueType: 'Task',
69+
parent: null,
70+
priority: 'Low',
6871
};
6972

7073
const sampleCaseServices = {
@@ -223,6 +226,7 @@ describe('usePostPushToService', () => {
223226
const result = formatServiceRequestData(pushedCase, connector as CaseConnector, caseServices);
224227
expect(result).toEqual({
225228
...sampleServiceRequestData,
229+
...connector.fields,
226230
externalId: 'other_external_id',
227231
});
228232
});
@@ -240,6 +244,7 @@ describe('usePostPushToService', () => {
240244
const result = formatServiceRequestData(pushedCase, connector as CaseConnector, caseServices);
241245
expect(result).toEqual({
242246
...sampleServiceRequestData,
247+
...connector.fields,
243248
externalId: null,
244249
});
245250
});

x-pack/plugins/security_solution/public/cases/containers/use_post_push_to_service.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ export const formatServiceRequestData = (
195195
description,
196196
externalId: actualExternalService?.externalId ?? null,
197197
title,
198+
...(connector.fields ?? {}),
198199
updatedAt,
199200
updatedBy:
200201
updatedBy != null

0 commit comments

Comments
 (0)