Hi
I am trying to set a component on an issue using Jelly, I have tried this but it doesnt work:
<core:set var="componentToAdd" value="OPS" />
<core:invoke on="${issueKey}" method="getComponents" var="components" />
<core:invoke on="${components}" method="add" var="flag">
<core:arg type="org.ofbiz.core.entity.GenericValue" value="${componentToAdd}" />
</core:invoke>
<core:invoke on="${issueKey}" method="setComponents">
<core:arg type="java.util.Collection" value="${components}" />
</core:invoke>
But I get the following error:
org.apache.commons.jelly.JellyTagException: null:30:0: Can't convert OPS to class org.ofbiz.core.entity.GenericValue
How would i set a component into the collection in jelly?