Thursday, November 29, 2012

SharePoint Kings: How to make My group task webpart from My task

To display the tasks assigned to the groups that the user belongs to.


 1. Add content query web part on the page.
2. Edit that web part. In Query section select Source as task list (you can browse and select task list)
3. Set Additional Filter with “Assigned To” --> “is equal to” --> [Me]
4. Apply it

Now if you see that web part must looks like normal task web part.

Now export that web part.

Save it on your pc.

It should have .webpart extension.

Open it with notepad(or any editor)

Find QueryOverride property. (it must be blank) like this <property name="QueryOverride" type="string" /> now add below query inside <property name="QueryOverride" type="string" ></property> here is the query <Or> <Eq> <FieldRef Name="AssignedTo"/><Value Type="Integer"><UserID/></Value> </Eq> <Membership Type="CurrentUserGroups"><FieldRef Name="AssignedTo"/></Membership> </Or>

SharePoint Kings: How to make My group task webpart from My task: Hi, We all are using my task web part (superb out of the box web part) but most of the time we are having requirement where a task is ass...

No comments:

Post a Comment