Is it possible via velocity custom field using javascript or jquery display issue links to current issue?
Here the code for Velocity custom field (for view):
#set ($issueLinkManager = $jirautils.loadComponent('com.atlassian.jira.issue.link.DefaultIssueLinkManager', $customField.getClass())) #set ($outlinks = $issueLinkManager.getOutwardLinks($issue.id)) #foreach ($outlink in $outlinks) $outlink.destinationObject.key $outlink.destinationObject.summary <br> #end
Do you mean the incoming links? These should be displayed anyway.
I just released a version of the script runner that lets you use groovy to write the values for custom fields, there is a vaguely similar example to what it sounds like you want here: https://studio.plugins.atlassian.com/wiki/display/GRV/Scripted%20Fields#ScriptedFields-Aninformationmessage
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here the code for Velocity custom field (for view):
#set ($issueLinkManager = $jirautils.loadComponent('com.atlassian.jira.issue.link.DefaultIssueLinkManager', $customField.getClass())) #set ($outlinks = $issueLinkManager.getOutwardLinks($issue.id)) #foreach ($outlink in $outlinks) $outlink.destinationObject.key $outlink.destinationObject.summary <br> #end
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.