Use case
Return the keys of the linked issues that are in the same project as the current issue.
Expression
Create and configure a Smart field using this expression in General parsing mode:
%{filterByProject(linkedIssues(), %{issue.project.key})}
Used parser functions