Linking issues through a link type "relates to" is ambiguous in Jira. Since there are two "relates to"'s, it is not possible to address related issues using Nunjacks code:
{% set links = issue | linkedIssues("relates to") %}
Two "relates to"'s are visible in the field "Link Type" in creating or editing Post Functions in Workflow administration.
Is it possible to merge these links into one or at least rename one of the "relates to", so that the above code addresses the correct issues?