@Since Version: 3.3.1
If you want to change the way how the Assignee column is rendered, you can adjust the default render function.
First let's prepare the data on the server. To do so, please use Widget Properties > Advanced > Item Script:
(this is just an example, you can render the data in any other way...)
var aIt = wi.getAssignees().iterator(); var assignees = ""; var separator = ""; while(aIt.hasNext()){ var assignee = aIt.next(); if(assignee.isUnresolvable()){ assignees = assignees + separator + assignee.getLocalId().getObjectName();; }else{ assignees = assignees + separator + assignee.name; } separator = ","; } if(assignees!=""){ task.getFields().put("assignees",assignees); }
This will push some more data to the client (using task.fields map). Now we want to take this data and render it in our column. To do so in Widget Properties > Advanced > Gantt Config Script we just change the template
gantt.templates.renderAssigneesColumn_function = function(task){ return (task.fields.assignees? task.fields.assignees : ""); };
And this is it...
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article