Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 3e064e7

Browse files
committed
[client] Enhance export of customized entities
1 parent efc5804 commit 3e064e7

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

pycti/utils/opencti_stix2.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,27 +1558,27 @@ def prepare_export(
15581558
):
15591559
entity["object_refs"].append(entity_object["standard_id"])
15601560
elif (
1561-
entity["type"] == "case-incident"
1561+
entity["type"] == "x-opencti-case-incident"
15621562
and "stix-ref-relationship" not in entity_object["parent_types"]
15631563
):
15641564
entity["object_refs"].append(entity_object["standard_id"])
15651565
elif (
1566-
entity["type"] == "feedback"
1566+
entity["type"] == "x-opencti-feedback"
15671567
and "stix-ref-relationship" not in entity_object["parent_types"]
15681568
):
15691569
entity["object_refs"].append(entity_object["standard_id"])
15701570
elif (
1571-
entity["type"] == "case-rfi"
1571+
entity["type"] == "x-opencti-case-rfi"
15721572
and "stix-ref-relationship" not in entity_object["parent_types"]
15731573
):
15741574
entity["object_refs"].append(entity_object["standard_id"])
15751575
elif (
1576-
entity["type"] == "case-rft"
1576+
entity["type"] == "x-opencti-case-rft"
15771577
and "stix-ref-relationship" not in entity_object["parent_types"]
15781578
):
15791579
entity["object_refs"].append(entity_object["standard_id"])
15801580
elif (
1581-
entity["type"] == "task"
1581+
entity["type"] == "x-opencti-task"
15821582
and "stix-ref-relationship" not in entity_object["parent_types"]
15831583
):
15841584
entity["object_refs"].append(entity_object["standard_id"])

test.json

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)