-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 11.3.7
-
Component/s: Project - Releases
-
None
-
11.03
-
1
-
Severity 3 - Minor
-
1
Issue Summary
After upgrading from Jira DC 10.3.18 to Jira DC 11.3.6, a custom release notes template stopped displaying the value of a custom field intended to be rendered as a “Release Comment” beside each issue in generated release note
Steps to Reproduce
Create a SCRUM project and a custom field named. “released note comments” and note the ID
- modify the script with custom field id and replace the complete content with this under jira/atlassian-jira-software-10.3.18-standalone/atlassian-jira/WEB-INF/classes/templates/jira/project/releasenotes/releasenotes-html.vm
- Restart the JIRA
- Navigate to Project-
> settings -->Version->Select Version -->Release notes. - Check the Custom field value , it is empty.
#disable_html_escaping() #macro (getReleaseNoteComment $issue) #set ($customFieldManager = $component.get("com.atlassian.jira.issue.CustomFieldManager")) #if ($customFieldManager) #set($customField = $customFieldManager.getCustomFieldObject("customfield_53890")) <span style="color:green"> DEBUG CF FOUND = [$customField.id|--- [$customField.name] </span> #if($customField) ##set($cfValue = $customField.getValue($issue)) #set($cfValue = $issue.getCustomFieldValue($customField)) #if($cfValue) - <b>Release Comment</b>: $textUtils.htmlEncode($cfValue.toString()) #end #else <span style="color:red">[DEBUG: Field context lookup failed for $customField.id]</span> #end #end #end <title>$action.getText('release.notes.html.title', $project, $version) </title> <body> <title>$textUtils.htmlEncode($action.getText('release.notes.html.title', $project, $version))</title> <body> <div class="ops-cont"> <ul class="ops"> <li> <a class="aui-button first last" href="$\!requestContext.baseUrl/secure/ConfigureReleaseNote.jspa?projectId=${versionObj.projectObject.id}&version=${versionObj.id}">$action.getText('releasenotes.configure')</a> </li> </ul> </div> #foreach ($issueType in $issueTypes) #if($issueType.issues.size() > 0) <h2>$textUtils.htmlEncode($issueType.name)</h2> <ul> #foreach ($issue in $issueType.issues) <li>[<a href='$requestContext.canonicalBaseUrl/browse/$issue.key'>$issue.key</a>] - $textUtils.htmlEncode($issue.summary)#getReleaseNoteComment($issue $customFieldManager)</li> #end </ul> #end #end <a name="editarea"></a> <h2>$action.getText('release.notes.edit.copy')</h2> <p>$action.getText('release.notes.description')</p> <textarea rows="40" cols="120" id="editcopy"> #doubleEncode($action.getText('release.notes.heading', $project, $version)) #foreach ($issueType in $issueTypes) #if($issueType.issues.size() > 0) <h2>#doubleEncode($issueType.name)</h2> <ul> #foreach ($issue in $issueType.issues) <li>[<a href='$!requestContext.canonicalBaseUrl/browse/$issue.key'>$issue.key</a>] - #doubleEncode($issue.summary)#getReleaseNoteComment($issue $customFieldManager)</li> #end </ul> #end #end </textarea> </body>
Expected Results
The CustomField value should be displayed
Actual Results
Value of the custom field is empty
The below exception is thrown in the atlassian-jira.log file:
2026-06-23 07:11:23,235+0000 http-nio-8080-exec-10 url: /jira/login.jsp, /jira/plugins/servlet/login WARN anonymous 431x3x1 1u7rw4g 10.140.13.46,172.50.0.2 /login.jsp [velocity] Cannot locate method(s) getText(java.lang.String java.lang.String java.lang.String), getText(java.lang.String) for class com.atlassian.jira.web.action.browser.ReleaseNote for security introspection in Velocity
Workaround
None