@@ -707,6 +707,7 @@ def create(self, **kwargs):
707707 modified = kwargs .get ("modified" , None )
708708 name = kwargs .get ("name" , None )
709709 description = kwargs .get ("description" , None )
710+ content = kwargs .get ("content" , None )
710711 severity = kwargs .get ("severity" , None )
711712 priority = kwargs .get ("priority" , None )
712713 x_opencti_stix_ids = kwargs .get ("x_opencti_stix_ids" , None )
@@ -749,6 +750,7 @@ def create(self, **kwargs):
749750 "modified" : modified ,
750751 "name" : name ,
751752 "description" : description ,
753+ "content" : content ,
752754 "severity" : severity ,
753755 "priority" : priority ,
754756 "x_opencti_stix_ids" : x_opencti_stix_ids ,
@@ -884,6 +886,12 @@ def import_from_stix2(self, **kwargs):
884886 stix_object ["x_opencti_workflow_id" ] = (
885887 self .opencti .get_attribute_in_extension ("workflow_id" , stix_object )
886888 )
889+ if "x_opencti_content" not in stix_object or "content" not in stix_object :
890+ stix_object ["content" ] = self .opencti .get_attribute_in_extension (
891+ "content" , stix_object
892+ )
893+ if "x_opencti_content" in stix_object :
894+ stix_object ["content" ] = stix_object ["x_opencti_content" ]
887895 if "x_opencti_assignee_ids" not in stix_object :
888896 stix_object ["x_opencti_assignee_ids" ] = (
889897 self .opencti .get_attribute_in_extension ("assignee_ids" , stix_object )
@@ -926,6 +934,11 @@ def import_from_stix2(self, **kwargs):
926934 if "description" in stix_object
927935 else None
928936 ),
937+ content = (
938+ self .opencti .stix2 .convert_markdown (stix_object ["content" ])
939+ if "content" in stix_object
940+ else None
941+ ),
929942 severity = stix_object ["severity" ] if "severity" in stix_object else None ,
930943 priority = stix_object ["priority" ] if "priority" in stix_object else None ,
931944 response_types = (
0 commit comments