How to change the way 'Assignee' column is rendered?

Modified on Fri, 22 Nov at 1:30 PM

@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 : "");
};



NEW!  @Since Version: 24.11.3


Configuration options to display the Assignee column:


Currently there 2 display mode options available: initials and fullname.


- 'initials' is the default value, that you see with the user's initials in the grey circle;

- 'fullname' is a new value, that you can enable by adding the property below in Polarion Administration -> Configuration properties:

nextedy.gantt.assignee_column_display_mode=fullname

When enabled, you'll see the full name of your users, as shown below:




In case of any questions, please contact support@nextedy.com



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article