How do I get the Link Type direction name into a custom field?

I am trying to set up a custom field that stores the direction NAME of the link type. I am using a Groovy Scripted field since I don't see a custom field out there that does this. Basically I want a custom field to display the name of the direction of its link to another issue.

Example

Records: JIRA-1, JIRA-2 where JIRA-2 is a duplicate of JIRA-1

Link type: Duplicate (inward = "is duplicated by", Outward = "duplicates")

Custom Field: Link Type

JIRA-1 Link Type = "is duplicated by"

JIRA-2 Link Type = "duplicates"

 

5 answers

0 vote

What if there are multiple links, some inbound, some outbound?

yeah, that is the bigger problem. I basically need what is displayed in the first column of the the Issue Links section. Any ideas would be great! Thanks for the quick response.

0 vote

I can''t really solve that because it depends what you are after. Maybe you could give some more context about why you want this and what you're trying to achieve.

I am using the Issue Matrix plugin in Custom JQL mode to return Issue Links sorted by issue type. One thing that was not noticed originally was that the inward and outward link type (duplicates, is duplicated by, ect.) is not displayed in the way it renders the Issue Matrix field. I have submitted a couple of requests with Botron (Issue Matrix designer). As a work around in the mean time I was trying to think of a way to get the link type to display as a scripted custom field since custom fields are what is returned. Hope this makes sense and I don't think it is possible because each issue can have multiple links, but any ideas/help would be greatly appreciated.

Stephen, we started working on this feature request but we don't have a solution yet. There isn't a field/column shows the link type that we can simply show. Fabricating a new column on the fly which was our plan, turned out to be too slow and not a good solution. As we come up with some ideas we will keep you posted.
You can watch the issue we use to track this similar request: https://botronsoft.atlassian.net/browse/ILV-17

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

633 views 6 12
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you