Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Problems with double 'relates to' issue link when addressing through linkedIssues("relates to")

Nikolai Klyukach
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 6, 2018

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?

1 comment


Log in or Sign up to comment
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 6, 2018

I suspect there is only one link here.  Links in Jira are vectors, so you can form a sentence like "issue X depends on issue Y" and "Issue Y is depended on by issue X" - that is the same link, but directional.

Off the shelf, Jira ships with one link type which has the same label on both directions, so "X relates to Y" comes out as "Y relates to X" when looked at from the other end.

There's no "merge" you can do here, the two "relates to" are already the same link type.

But you can put different labels on them, or even remove the link type.   Even something as simple as extra spaces or different capitalisation should allow your Nunjacks to uniquely identify one.

AUG Leaders

Atlassian Community Events