I'm having problems getting the Epic Link name for Jira custom release notes. I followed the same method I have used to get other custom fields but so far it is just returning blank.
1.
#macro (getEpicName $issue $customFieldManager)
#set ($customFields = $customFieldManager.getCustomFieldObjects($issue.project.getLong("id"), $issue.issueType.getString("id")))
#foreach($customField in $customFields)
#if($customField.name.equals("Epic Link"))
#if($customField.getValue($issue)) <b>$textUtils.htmlEncode($customField.getValue($issue))</b><br>#end
#end
#end
#end
2.
#getEpicName($issue $customFieldManager)
Above is the code I have used 1. is the macro 2. is where I am trying to use the macro