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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
Highlighted

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

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

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.

Comment

Log in or Sign up to comment
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you