Hi everyone,
I updated our Jira Version from 8.16.1 to 9.0 and it caused problems with Active Objects in Velocity templates. Before I was just transferring a list of Active Objects as context parameter and iterating through it with a for each loop in the template:
#foreach($config in $configs)
<tr>
<td>$config.getID()</td>
<td>$config.getKey()</td>
<td>$config.getConfig()</td>
<td><input type="submit" class="delete-config" data-id="$config.getID()" name="submit" value="Delete"/></td>
<td><a href="config?actionType=edit&id=$config.getID()" class="edit-config">Edit</a></td>
</tr>
#end
The issue is now that it doesn’t get rendered with the new Jira Version anymore, while it works fine with the previous version.
I currently use a workaround where I’m transferring every value in a separate String list to avoid Active Objects, but I really would prefer a “cleaner” solution.