Work Management Service

One of the new hot features of SharePoint 2013 is the Work Management Service. This service aggregates tasks from everywhere (SharePoint, Project Server and Exchange) and it also has a “Provider model” that can be used for further integration.

On the UI side, this feature also brings along a very nice web part : My tasks. This web part has different views on all the tasks, and it also provide a rich user interface to view, edit or create new tasks. This post shows more about how My tasks web part can be used by SharePoint Users.

My tasks Web Part

                                         The web part can be found in Content Rollup -> My Tasks

The web part also has three important properties in the Miscellaneous category:

  • Task List Type- gives you the possibility of choosing between different types of views
  • Show view selector – gives the user the possiblity of switching between multiple views
  • Show refresh status – if this option is enabled a small message about the last refresh status is shown at the bottom of the web part
Miscellaneous settings for My tasks web part

Miscellaneous settings for My tasks web part

The web part can be provisioned with xml, and it has a good html structure, so it can be easily customized using css. Here is a sample of how to provision the web part to a page, including the most relevant properties:

 <webPart xmlns="">
 <type name="Microsoft.Office.Server.WorkManagement.UI.TaskListWebPart, Microsoft.Office.Server.WorkManagement.UI, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
 <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
 <property name="HelpUrl" type="string" />
 <property name="Hidden" type="bool">False</property>
 <property name="ChromeType" type="chrometype">Default</property>
 <property name="AllowClose" type="bool">True</property>
 <property name="ShowRefreshStatus" type="bool">True</property>
 <property name="ExportMode" type="exportmode">All</property>
 <property name="AllowMinimize" type="bool">True</property>
 <property name="AllowEdit" type="bool">True</property>
 <property name="Direction" type="direction">NotSet</property>
 <property name="AllowConnect" type="bool">True</property>
 <property name="MissingAssembly" type="string">Cannot import this Web Part.</property>
 <property name="TaskListType" type="Microsoft.Sharepoint.WorkManagement.TaskListType, Microsoft.Office.Server.WorkManagement.UI, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Active</property>
 <property name="TimelineViewData" type="string" null="true" />
 <property name="HelpMode" type="helpmode">Modeless</property>
 <property name="Description" type="string"></property>
 <property name="TitleIconImageUrl" type="string" />
 <property name="CatalogIconImageUrl" type="string" />
 <property name="ChromeState" type="chromestate">Normal</property>
 <property name="AllowZoneChange" type="bool">True</property>
 <property name="LastQueryTime" type="datetime" />
 <property name="Height" type="string" />
 <property name="ShowViewSelector" type="bool">False</property>
 <property name="Width" type="string" />
 <property name="Title" type="string">My Tasks</property>
 <property name="AllowHide" type="bool">True</property>
 <property name="TitleUrl" type="string">~sitecollection/AllTasks.aspx</property>

The TaskListType property is an enumeration that can take any of these values:

 public enum TaskListType

This may come in very handy when developing a custom social collaboration portal that includes changes to each user’s personal site.