Modify My Tasks dashlet

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2011 06:59 AM
Hi,
I want to modify the my tasks dashlet. When a user clicks on my tasks from the more menu it displays all tasks with task description, Due, Type and Status information. Is there any way to add couple of more fields to this display.
Like I want to add Who Started the task, Whom it is assigned to and Site Name the document belongs to.
Any help please!!
Thanks
Sans
I want to modify the my tasks dashlet. When a user clicks on my tasks from the more menu it displays all tasks with task description, Due, Type and Status information. Is there any way to add couple of more fields to this display.
Like I want to add Who Started the task, Whom it is assigned to and Site Name the document belongs to.
Any help please!!
Thanks
Sans
Labels:
- Labels:
-
Archive
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2011 07:23 AM
Anyone??? No one!! Need files to be modified or a brief description of changes that needs to be done will also help.
Thanks
Sans!!
Thanks
Sans!!

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2011 10:46 AM
Hi,
After going through the forums and files, I think task-list.js is the file that needs to be modified.
Here is the snippet of the code from the file that needs to be modified.
But the changes are not reflected on the page.
Any idea what's happening? Why the changes are not visible? Are these the right files? Am I missing something here??
Please help
Thanks in advance!!!
Sans
After going through the forums and files, I think task-list.js is the file that needs to be modified.
Here is the snippet of the code from the file that needs to be modified.
var info = '<h3><a href="' + $siteURL('task-edit?taskId=' + taskId + '&referrer=tasks&myTasksLinkBack=true') + '" class="theme-color-1" title="' + this.msg("link.editTask") + '">' + message + '</a></h3>'; info += '<div class="due"><label>' + this.msg("label.due") + ':</label><span>' + (dueDate ? Alfresco.util.formatDate(dueDate, "longDate") : this.msg("label.none")) + '</span></div>'; info += '<div class="status"><label>' + this.msg("label.status") + ':</label><span>' + status + '</span></div>';
I tried to change this code in both the files task-list.js and task-list-min.js and restarted the server.But the changes are not reflected on the page.
Any idea what's happening? Why the changes are not visible? Are these the right files? Am I missing something here??
Please help
Thanks in advance!!!
Sans

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2011 11:57 AM
Well, It's working now. The file that needs to be modified is task-list-min.js.
Now the problem is how can i get the values of initiator and name of site the document belongs to?
Thanks
Sans!!!
Now the problem is how can i get the values of initiator and name of site the document belongs to?
Thanks
Sans!!!

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2014 12:01 PM
Hi, i'm trying to show a new custom property in my-task dashlet. My custom property is "mywf:customProperty".
All workflow process work fine, but when i'm editing the file "C:\Alfresco\tomcat\webapps\share\components\dashlets\my-tasks.js", my property don't exist in oRecord.properties object:
Where can I customize oRecord object? Where recive the params (elCell, oRecord, oColumn, oData) the funcions in *.js files?
I don't understand the call process between files.
Thank you for your help!!
All workflow process work fine, but when i'm editing the file "C:\Alfresco\tomcat\webapps\share\components\dashlets\my-tasks.js", my property don't exist in oRecord.properties object:
renderCellTaskInfo: function MyTasks_onReady_renderCellTaskInfo(elCell, oRecord, oColumn, oData) { var data = oRecord.getData(), desc = ""; if (data.isInfo) { desc += '<div class="empty"><h3>' + data.title + '</h3>'; desc += '<span>' + data.description + '</span></div>'; } else { alert("data obj:"+Object.keys(data.properties)); var taskId = data.id, message = data.properties["bpm_description"], dueDateStr = data.properties["bpm_dueDate"], dueDate = dueDateStr ? Alfresco.util.fromISO8601(dueDateStr) : null, today = new Date(), type = data.title, status = data.properties["bpm_status"], customAction= data.properties["mywf_customProperty"]; assignee = data.owner; // if there is a property label available for the status use that instead if (data.propertyLabels && Alfresco.util.isValueSet(data.propertyLabels["bpm_status"], false)) { status = data.propertyLabels["bpm_status"]; } // if message is the same as the task type show the <no message> label if (message == type) { message = this.msg("workflow.no_message"); } var href; if (data.isEditable) { href = $siteURL('task-edit?taskId=' + taskId + '&referrer=tasks') + '" class="theme-color-1" title="' + this.msg("title.editTask"); } else { href = $siteURL('task-details?taskId=' + taskId + '&referrer=tasks') + '" class="theme-color-1" title="' + this.msg("title.viewTask"); } alert("lastAction: "+lastAction); var messageDesc = '<h3><a href="' + href + '">' + $html(message) + '</a></h3>', dateDesc = dueDate ? '<h4><span class="' + (today > dueDate ? "task-delayed" : "") + '" title="' + this.msg("title.dueOn", Alfresco.util.formatDate(dueDate, "longDate")) + '">' + Alfresco.util.formatDate(dueDate, "longDate") + '</span></h4>' : "", statusDesc = '<div title="' + this.msg("title.taskSummary", type, status) + '">' + this.msg("label.taskSummary", type, status) + '</div>', unassignedDesc = '', customAction='<div title="title">'+this.msg("title.taskSummary", customAction)+'</div>'; if (!assignee || !assignee.userName) { unassignedDesc = '<span class="theme-bg-color-5 theme-color-5 unassigned-task">' + this.msg("label.unassignedTask") + '</span>'; } desc = messageDesc + dateDesc + statusDesc + unassignedDesc + customAction; }
Where can I customize oRecord object? Where recive the params (elCell, oRecord, oColumn, oData) the funcions in *.js files?
I don't understand the call process between files.
Thank you for your help!!
