Keys of linked work items in current project
Return the keys of the linked work items that are in the same project as the current work item.
Configuration
Create a Custom smart text field and use the General parsing mode.
Expression
%{filterByProject(linkedIssues(), %{issue.project.key})}
Used parser functions
The links lead to the JWTC documentation because the parser functions are shared functionalities.