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
Explore the interface and basic Jira terms, then discover how to effectively manage your work.
Learning Path
Atlassian tools and practices for developers
Focus on your development work by using Jira software features and functions efficiently.
Atlassian Certified Associate
Jira Software Essentials certification
Demonstrate proficiency in utilizing essential Jira features and working efficiently with Agile frameworks like Kanban and Scrum.