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

cancel
Showing results for 
Search instead for 
Did you mean: 
AJ_
Active Member

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

Jump to solution

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).

Capture.png

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 Solution

Accepted Solutions
AJ_
Active Member

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

Jump to solution

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 solution in original post

2 Replies
AJ_
Active Member

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

Jump to solution

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 solution in original post

amanda_roberts
Community Manager
Community Manager

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

Jump to solution

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!