Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the 'Epic Link' name for Jira velocity templates

Michael Stevens
Contributor
July 25, 2019

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

0 answers

Suggest an answer

Log in or Sign up to answer