Use the SharePoint My Tasks Web Part outside of My Sites
Written by Keith Tuomi. Posted in SharePoint 2013
Ever wanted to get the functionality of the “My Tasks” web part, outside your SharePoint 2013 My Site? My team did – adding it to our regular Consultant Dashboard would complete the picture of a comprehensive central employee central dashboard where all one’s tasks, issues, and other key metrics are available in one spot. 
The first question is, how to get the My Tasks widget, which essentially seems to be a web part, exported and re-usable elsewhere. This web part is joined at the hip to the Work Management Service and is not available via the GUI to be re-deployed elsewhere as a standard web part.
Although it seems that perhaps in SP 2013 pre-RTM the web part was available to be deployed as a web part via the web part category “Content Rollup” > My Tasks, it ain’t there currently. Would love to know why it was apparently pulled, but that’s not going to distract from the mission at hand.
Simply exporting the web part and importing elsewhere results in a dismal blankness. No errors, no data either. The web part really seems to want to live in the My Site context.
What worked for me was:
1. Going to a “Tasks” page on a My Site, and exporting the Tasks Web Part 2. Using SharePoint Designer to copy the related sub-pages that are linked from the top menu (AllTasks.aspx, Highlights.aspx, Settings.aspx, RecentlyAssigned.aspx, EditTask.aspx, & CompletedTasks.aspx) from the root of the My Site into the destination team site – this allows you to still access those views from the destination site 3. Edit those sub-pages to remove the Personal redirect control reference: <SPSWC:PersonalSpaceRedirect runat=”server”/> That will prevent visitors to the view pages from being redirected to a non-existent My Site. 4. Import the Tasks Web Part into the destination Site.
All is well, we are now rocking with the My Tasks web part added on whatever page we desire: 
You can customize the XML manifest for the web part to taste as well:
02 |
< webPart xmlns = "http://schemas.microsoft.com/WebPart/v3" > |
04 |
< type name="Microsoft.Office.Server.WorkManagement.UI.TaskListWebPart, |
05 |
Microsoft.Office.Server.WorkManagement.UI, Version = 15 .0.0.0, Culture = neutral , |
06 |
PublicKeyToken = 71e9bce111e9429c " /> |
07 |
< importErrorMessage >Cannot import this Web Part.</ importErrorMessage > |
11 |
< property name = "HelpUrl" type = "string" /> |
12 |
< property name = "Hidden" type = "bool" >False</ property > |
13 |
< property name = "ChromeType" type = "chrometype" >Default</ property > |
14 |
< property name = "AllowClose" type = "bool" >True</ property > |
15 |
< property name = "ShowRefreshStatus" type = "bool" >True</ property > |
16 |
< property name = "ExportMode" type = "exportmode" >All</ property > |
17 |
< property name = "AllowMinimize" type = "bool" >True</ property > |
18 |
< property name = "AllowEdit" type = "bool" >True</ property > |
19 |
< property name = "Direction" type = "direction" >NotSet</ property > |
20 |
< property name = "AllowConnect" type = "bool" >True</ property > |
21 |
< property name = "MissingAssembly" type = "string" >Cannot import this Web Part.</ property > |
22 |
< property name = "TaskListType" type="Microsoft.Sharepoint.WorkManagement.TaskListType, |
23 |
Microsoft.Office.Server.WorkManagement.UI, Version = 15 .0.0.0, Culture = neutral , |
24 |
PublicKeyToken = 71e9bce111e9429c ">Active</ property > |
25 |
< property name = "TimelineViewData" type = "string" null = "true" /> |
26 |
< property name = "HelpMode" type = "helpmode" >Modeless</ property > |
27 |
< property name = "Description" type = "string" ></ property > |
28 |
< property name = "TitleIconImageUrl" type = "string" /> |
29 |
< property name = "CatalogIconImageUrl" type = "string" /> |
30 |
< property name = "ChromeState" type = "chromestate" >Normal</ property > |
31 |
< property name = "AllowZoneChange" type = "bool" >True</ property > |
32 |
< property name = "LastQueryTime" type = "datetime" /> |
33 |
< property name = "Height" type = "string" /> |
34 |
< property name = "ShowViewSelector" type = "bool" >False</ property > |
35 |
< property name = "Width" type = "string" /> |
36 |
< property name = "Title" type = "string" >My Tasks</ property > |
37 |
< property name = "AllowHide" type = "bool" >True</ property > |
38 |
< property name = "TitleUrl" type = "string" >~sitecollection/AllTasks.aspx</ property > |
The only task remaining that would really smooth it is to figure out how to modify the “views” inside the My Tasks Web Part properties – for example, it’d be desirable to filter out Completed tasks from the “ProjectSites” view. No idea where that view lives though. ;)
- How to: Add SharePoint 2010 Search Web Parts to Web Part Gallery for Upgraded Site Collections
When you upgrade to Microsoft SharePoint Server 2010, some of the new SharePoint Enterprise Search W ...
- SharePoint excel service web part 连接到 filter web part
本文讲述SharePoint excel service web part 连接到 filter web part的一个简单应用场景. SharePoint excel service web par ...
- BEGINNING SHAREPOINT® 2013 DEVELOPMENT 第3章节--SharePoint 2013 开发者工具 SharePoint中基于Web开发
BEGINNING SHAREPOINT® 2013 DEVELOPMENT 第3章节--SharePoint 2013 开发者工具 SharePoint中基于Web开发 之前提到过, ...
- SharePoint Framework 在web部件中使用第三方样式 - 将第三方样式打到包中
博客地址:http://blog.csdn.net/FoxDave 有许多第三方库可以帮助我们构建丰富的SharePoint Framework客户端web部件.并且这些JavaScript脚本常常包 ...
- SharePoint 2010 WebPart Web部分 总的膏
SharePoint 2010 WebPart Web部分 总的膏 之前写SharePoint WebPart Web部分相关的博客,我们没有做一个索引.网友在查看的时候非常不方便,于 ...
- SharePoint 2013 创建Web Application
今天继续SharePoint 2013 的探索之旅,之前几篇文章分析了SharePoint 2013的物理拓扑结构,安装,以及逻辑体系结构.在这篇文章中,我将继续Step By Step形式演示如何在 ...
- Office 365 SharePoint 使用Charts Web Part
如果你在web part->业务数据下找不到Charts Web Part 可以修改你的URL https://goitmch.sharepoint.com/sites/xxxx/_layout ...
- SharePoint 2013 创建web应用程序报错"This page can’t be displayed"
错误描述 This page can’t be displayed •Make sure the web address http://centeradmin is correct. •Look fo ...
- SharePoint 2013 创建web应用程序报错"This page can’t be displayed"
错误描写叙述 This page can't be displayed •Make sure the web address http://centeradmin is correct. •Look ...
随机推荐
- 【课程分享】Oracle数据库系统project师
对这个课程有兴趣的朋友能够加我的QQ2059055336和我联系 一.本课程是怎么样的一门课程 1.1.课程的背景 该课程是Oracle数据库系统project师培训课程 Oracle Databas ...
- .net web 开发平台- 表单设计器 一(web版)
如今为了适应需求的不断变化,动态表单设计器应运而生.它主要是为了满足界面的不断变化和提高开发速度.比如:一些页面客户可能也无法确定页面的终于布局,控件的位置,在哪种情况下显示或不显示等可能须要随时改动 ...
- 基于xmpp openfire smack开发之smack类库介绍和使用[2]
http://blog.csdn.net/shimiso/article/details/8816540 关于Smack编程库,前面我们提到,它是面向Java端的api,主要在PC上使用,利用它我们可 ...
- QStandardItemModel角色控制及QTreeView加入不同的右键菜单
1.概述 QTreeView最长用的一个功能就是作为导航栏,像vs里的项目结构树,word的文档结构图,资源管理器的文档结构,等等都是利用树形结构组织的,在前面已经讲述了Qt中使用标准化项目模型QSt ...
- mapreduce实战:统计美国各个气象站30年来的平均气温项目分析
气象数据集 我们要写一个气象数据挖掘的程序.气象数据是通过分布在美国各地区的很多气象传感器每隔一小时进行收集,这些数据是半结构化数据且是按照记录方式存储的,因此非常适合使用 MapReduce 程序来 ...
- MySQL日志概述
为了防止无良网站的爬虫抓取文章,特此标识,转载请注明文章出处.LaplaceDemon/SJQ. http://www.cnblogs.com/shijiaqi1066/p/3859866.html ...
- LiLei&HanMeiMei的隐式马尔可夫爱情
一篇非常棒的隐马尔可夫入门文章...推荐! from: http://staffwww.dcs.shef.ac.uk/people/W.Liu/hmm.html
- cocos2dx Hello world 创建
环境搭建好后,就要开始创建自己的第一个hello world项目了 因为没有安装其他的插件,所以最开始只能手动创建 首先通过cmd 进入你的cocos2dx的路径下: D:\soft\cocos2d- ...
- kafka版本0.8.2.0-Producer Configs之request.required.acks
This value controls when a produce request is considered completed. Specifically, how many other bro ...
- C# DataTable去除重复,极其简便、简单
其中sourceDT是获取到的一个DataTable类型的集合对象 去重复使用方式: 实例化一个DataView对象 假设为dv,直接dv.ToTable()即可,ToTable中可为(true,&q ...