diff --git a/x-pack/legacy/plugins/siem/public/containers/case/types.ts b/x-pack/legacy/plugins/siem/public/containers/case/types.ts index e98ff9677815b..0f80b2327a30c 100644 --- a/x-pack/legacy/plugins/siem/public/containers/case/types.ts +++ b/x-pack/legacy/plugins/siem/public/containers/case/types.ts @@ -13,12 +13,10 @@ export interface NewCase extends FormData { description: string; tags: string[]; title: string; - case_type: string; } export interface Case { case_id: string; - case_type: string; created_at: string; created_by: ElasticUser; description: string; diff --git a/x-pack/legacy/plugins/siem/public/containers/case/use_get_case.tsx b/x-pack/legacy/plugins/siem/public/containers/case/use_get_case.tsx index 0de8a5fe80fdd..8cc961c68fdf0 100644 --- a/x-pack/legacy/plugins/siem/public/containers/case/use_get_case.tsx +++ b/x-pack/legacy/plugins/siem/public/containers/case/use_get_case.tsx @@ -51,7 +51,6 @@ const dataFetchReducer = (state: CaseState, action: Action): CaseState => { }; const initialData: Case = { case_id: '', - case_type: '', created_at: '', created_by: { username: '', diff --git a/x-pack/legacy/plugins/siem/public/containers/case/use_post_case.tsx b/x-pack/legacy/plugins/siem/public/containers/case/use_post_case.tsx index 1078c9645ec62..5cf99701977d2 100644 --- a/x-pack/legacy/plugins/siem/public/containers/case/use_post_case.tsx +++ b/x-pack/legacy/plugins/siem/public/containers/case/use_post_case.tsx @@ -57,7 +57,6 @@ const dataFetchReducer = (state: NewCaseState, action: Action): NewCaseState => } }; const initialData: NewCase = { - case_type: 'security', description: '', isNew: false, tags: [], diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/create/form_options.ts b/x-pack/legacy/plugins/siem/public/pages/case/components/create/form_options.ts index 44c009b566795..7bc43e23a72c5 100644 --- a/x-pack/legacy/plugins/siem/public/pages/case/components/create/form_options.ts +++ b/x-pack/legacy/plugins/siem/public/pages/case/components/create/form_options.ts @@ -4,17 +4,6 @@ * you may not use this file except in compliance with the Elastic License. */ -export const caseTypeOptions = [ - { - value: 'security', - inputDisplay: 'Security', - }, - { - value: 'other', - inputDisplay: 'Other', - }, -]; - export const stateOptions = [ { value: 'open', diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/create/index.tsx b/x-pack/legacy/plugins/siem/public/pages/case/components/create/index.tsx index 2d453686f873d..9fd1525003b0b 100644 --- a/x-pack/legacy/plugins/siem/public/pages/case/components/create/index.tsx +++ b/x-pack/legacy/plugins/siem/public/pages/case/components/create/index.tsx @@ -21,7 +21,6 @@ import { schema } from './schema'; import * as i18n from '../../translations'; import { SiemPageName } from '../../../home/types'; import { DescriptionMarkdown } from '../description_md_editor'; -import { caseTypeOptions } from './form_options'; export const CommonUseField = getUseField({ component: Field }); @@ -74,18 +73,6 @@ export const Create = React.memo(() => { isLoading={isLoading} onChange={description => setFormData({ ...data, description })} /> - { title: 'Super Bad Security Issue', state: 'open', tags: ['defacement'], - case_type: 'security', }, }); @@ -48,7 +47,6 @@ describe('POST cases', () => { title: 'Super Bad Security Issue', state: 'open', tags: ['error'], - case_type: 'security', }, }); @@ -69,7 +67,6 @@ describe('POST cases', () => { title: 'Super Bad Security Issue', state: 'open', tags: ['defacement'], - case_type: 'security', }, }); diff --git a/x-pack/plugins/case/server/routes/api/schema.ts b/x-pack/plugins/case/server/routes/api/schema.ts index 0f09283f21ecb..962dc474254f0 100644 --- a/x-pack/plugins/case/server/routes/api/schema.ts +++ b/x-pack/plugins/case/server/routes/api/schema.ts @@ -28,7 +28,6 @@ export const UpdatedCommentSchema = schema.object({ }); export const NewCaseSchema = schema.object({ - case_type: schema.string(), description: schema.string(), state: schema.oneOf([schema.literal('open'), schema.literal('closed')], { defaultValue: 'open' }), tags: schema.arrayOf(schema.string(), { defaultValue: [] }), @@ -36,7 +35,6 @@ export const NewCaseSchema = schema.object({ }); export const UpdatedCaseSchema = schema.object({ - case_type: schema.maybe(schema.string()), description: schema.maybe(schema.string()), state: schema.maybe(schema.oneOf([schema.literal('open'), schema.literal('closed')])), tags: schema.maybe(schema.arrayOf(schema.string())), diff --git a/x-pack/plugins/case/server/routes/api/types.ts b/x-pack/plugins/case/server/routes/api/types.ts index a5c565029b29a..2d1a88bcf1429 100644 --- a/x-pack/plugins/case/server/routes/api/types.ts +++ b/x-pack/plugins/case/server/routes/api/types.ts @@ -63,7 +63,6 @@ export interface AllComments { } export interface UpdatedCaseType { - case_type?: UpdatedCaseTyped['case_type']; description?: UpdatedCaseTyped['description']; state?: UpdatedCaseTyped['state']; tags?: UpdatedCaseTyped['tags'];