cancel
Showing results for 
Search instead for 
Did you mean: 

My tasks display only first name in "started by" field

AJ_
Champ on-the-rise
Champ on-the-rise

Hi,
I'd like to ask for a help.
I'm using Alfresco 6 and in My tasks list, there is only first name displayed for the person who started the worklfow (please see the screenshot below).

image

I actually cannot figure out where the problem is. I tested to get the variables from the DelegateExecution instance and also tested taskService API.
In the workflow details, both first and last name are displayed.
Can you advice me on the process how the "Started by" field value is set?  Specifically, from which object these values are taken, where is this FTL located etc. so I can go through the process and find out where the problem is.
Of course, if somebody knows exactly how to fix this, I will appreciate it even more Smiley Happy.
Thank you.

1 ACCEPTED ANSWER

AJ_
Champ on-the-rise
Champ on-the-rise

Alright, I managed to figure this out. Since somebody else might be dealing with this, I'm posting how I solved it. The root cause turned out to be in the Alfresco code.

1) Find the task-list.js file in the Alfresco source code.
2) Locate following part of code and add text in bold.
That's it.

         // initiator may not be present, see MNT-11622
         if (workflowInstance.initiator)
         {
            initiator = $html(workflowInstance.initiator.firstName + " " + workflowInstance.initiator.lastName);
         }

View answer in original post

2 REPLIES 2

AJ_
Champ on-the-rise
Champ on-the-rise

Alright, I managed to figure this out. Since somebody else might be dealing with this, I'm posting how I solved it. The root cause turned out to be in the Alfresco code.

1) Find the task-list.js file in the Alfresco source code.
2) Locate following part of code and add text in bold.
That's it.

         // initiator may not be present, see MNT-11622
         if (workflowInstance.initiator)
         {
            initiator = $html(workflowInstance.initiator.firstName + " " + workflowInstance.initiator.lastName);
         }

Hi @AJ_ I'm so glad to hear you got this working for yourself! I'll go ahead and mark this as the solution. Smiley Happy 

Community Manager for Hyland and Alfresco
Did someone's answer help you out? Remember to Accept Solution!