Web Script: org/alfresco/components/dashlets/my-tasks-list.get
Generated from /share/service/script/org/alfresco/components/dashlets/my-tasks-list.get on Jun 16, 2026 7:19:02 PM

Script Properties
Id:org/alfresco/components/dashlets/my-tasks-list.get
Short Name:My Tasks List
Description:Used by My Tasks dashlet to list tasks assigned to the current user
Authentication:none
Transaction:none
Method:GET
URL Template:/components/dashlets/my-tasks/list
Format Style:any
Default Format:html
Negotiated Formats:[undefined]
Implementation:class org.alfresco.web.scripts.DeclarativeWebScript
Extensions:[undefined]

Store: classpath:alfresco/site-webscripts

File: org/alfresco/components/dashlets/my-tasks-list.get.desc.xml
<webscript>
   <shortname>My Tasks List</shortname>
   <description>Used by My Tasks dashlet to list tasks assigned to the current user</description>
   <url>/components/dashlets/my-tasks/list</url>
</webscript>
File: org/alfresco/components/dashlets/my-tasks-list.get.html.ftl
<#macro doclibUrl doc>
   <#if ((doc.location.site?exists) && (doc.location.site != ""))>
   <a href="${url.context}/page/site/${doc.location.site}/documentlibrary?file=${doc.fileName?url}#path=${doc.location.path?url}">${doc.displayName?html}</a>
   <#else>
   ${doc.displayName?html}
   </#if>
</#macro>
<#if myTasks?exists && myTasks.tasks?size &gt; 0>
   <#list myTasks.tasks?sort_by("dueDate") as task>
      <#assign overdue = ((task.dueDate != "") && (dateCompare(date?date, task.dueDate?date("yyyy-MM-dd")) == 1))>
   <div class="detail-list-item <#if task_index = 0>first-item<#elseif !task_has_next>last-item</#if>">
      <div class="task-icon">
         <span class="priority<#if overdue> overdue</#if>">${task.priority}</span>
      </div>
      <div class="task-details">
         <h4>${task.description?html}<#if overdue> <span class="light">(${msg("status.overdue")})</span></#if></h4>
         <span class="task-status">${task.type}, ${task.status}</span>
         <div class="task-resources">
      <#list task.resources as resource>
            <div class="task-resource<#if resource_has_next> resource-spacer</#if>">
               <span class="task-resource-link">
                  <img src="${url.context}/components/images/generic-file-16.png" alt="icon" />
                  <span><@doclibUrl resource /></span>
               </span>
            </div>
      </#list>
         </div>
         <div class="task-transitions">
      <#list task.transitions as transition>
            <span class="${task.id} ${transition.id}"><a href="#" class="task-transition">${transition.label?html}</a></span>
         <#if transition_has_next><span class="separator">|</span></#if>
      </#list>
         </div>
      </div>
   </div>
   </#list>
<#else>
   <div class="detail-list-item first-item last-item">
      <span>${msg("label.no-tasks")}</span>
   </div>
</#if>
File: org/alfresco/components/dashlets/my-tasks-list.get.js
model.myTasks = getMyTasks();

function getMyTasks()
{
	// Call the repo for sites the user is a member of
	var result = remote.call("/slingshot/dashlets/my-tasks?filter=" + args["filter"]);
	if (result.status == 200)
	{
		// Create javascript objects from the server response
		return eval('(' + result + ')');
	}
	
   status.setCode(result.status, result.response);
	return null;
}
File: org/alfresco/components/dashlets/my-tasks-list.get.properties
label.no-tasks=No tasks to display
status.overdue=Overdue

Store: classpath:alfresco/webscripts

[No implementation files]