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?
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Get the most out of Jira
Start with basic Jira terms and navigation. Then, discover how to effectively organize work and customize your Jira experience.
Learning Path
Atlassian tools and practices for developers
Reduce context switching by making Jira more efficient, and apply collaboration best practices for streamlined team operations.
Atlassian Certified Associate
Jira Essentials certification
Validate your knowledge of key Jira concepts like using work items, spaces, boards, and Rovo.