It is possible to get all entries by structureId ?
If yes how ?
For now i use something like this:
{% if entry.parent %}
{% set relatedEntries = entry.parent.children()|filter(v => v.type == 'default')|merge([entry.parent]) %}
{% else %}
{% set relatedEntries = entry.children()|filter(v => v.type == 'default')|merge([entry]) %}
{% endif %}
But i'm very limited if for example some children entry has children then it doesn't works anymore.