SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here is a link to the SiteDocuments web part:

Here is a picture of it on MySites:

I want to create a web part that is similar to this, but shows tasks instead of documents. My current idea is to crawl the whole web application and look at all lists to determine whether a list has the 'task' content type and has items assigned to the current user. There must be a better way to do this. Any ideas? I want to model my web part on the SiteDocuments web part.

share|improve this question

I'd take a look at using the Search API to get a result set of tasks assigned to the current user, and slap on some XSLT to format it how you want, or just plain create a table from the result set.

You want to be looking for stuff like the FullTextSqlQuery class:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.