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

Commit abae44a

Browse files
committed
[client] Get all relationships / sightings in full export
1 parent 3b003ae commit abae44a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pycti/utils/opencti_stix2.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,9 +1751,9 @@ def prepare_export(
17511751
"parent_types": ["Stix-Domain-Object"],
17521752
}
17531753
)
1754-
# Get extra relations (from)
1754+
# Get extra relations (from AND to)
17551755
stix_core_relationships = self.opencti.stix_core_relationship.list(
1756-
elementId=entity["x_opencti_id"]
1756+
elementId=entity["x_opencti_id"], getAll=True
17571757
)
17581758
for stix_core_relationship in stix_core_relationships:
17591759
if self.check_max_marking_definition(
@@ -1788,7 +1788,8 @@ def prepare_export(
17881788
)
17891789
# Get sighting
17901790
stix_sighting_relationships = self.opencti.stix_sighting_relationship.list(
1791-
elementId=entity["x_opencti_id"]
1791+
elementId=entity["x_opencti_id"],
1792+
getAll=True,
17921793
)
17931794
for stix_sighting_relationship in stix_sighting_relationships:
17941795
if self.check_max_marking_definition(

0 commit comments

Comments
 (0)