Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions pycti/entities/opencti_case_incident.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ def create(self, **kwargs):
modified = kwargs.get("modified", None)
name = kwargs.get("name", None)
description = kwargs.get("description", None)
content = kwargs.get("content", None)
severity = kwargs.get("severity", None)
priority = kwargs.get("priority", None)
x_opencti_stix_ids = kwargs.get("x_opencti_stix_ids", None)
Expand Down Expand Up @@ -749,6 +750,7 @@ def create(self, **kwargs):
"modified": modified,
"name": name,
"description": description,
"content": content,
"severity": severity,
"priority": priority,
"x_opencti_stix_ids": x_opencti_stix_ids,
Expand Down Expand Up @@ -884,6 +886,12 @@ def import_from_stix2(self, **kwargs):
stix_object["x_opencti_workflow_id"] = (
self.opencti.get_attribute_in_extension("workflow_id", stix_object)
)
if "x_opencti_content" not in stix_object or "content" not in stix_object:
stix_object["content"] = self.opencti.get_attribute_in_extension(
"content", stix_object
)
if "x_opencti_content" in stix_object:
stix_object["content"] = stix_object["x_opencti_content"]
if "x_opencti_assignee_ids" not in stix_object:
stix_object["x_opencti_assignee_ids"] = (
self.opencti.get_attribute_in_extension("assignee_ids", stix_object)
Expand Down Expand Up @@ -926,6 +934,11 @@ def import_from_stix2(self, **kwargs):
if "description" in stix_object
else None
),
content=(
self.opencti.stix2.convert_markdown(stix_object["content"])
if "content" in stix_object
else None
),
severity=stix_object["severity"] if "severity" in stix_object else None,
priority=stix_object["priority"] if "priority" in stix_object else None,
response_types=(
Expand Down