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"