I am creating a visual web part for aggregating all task in all webs of a site collection
I am using
SPSiteDataQuery to get all tasks but it does not work for Task list
query.Lists = "<Lists ServerTemplate=\"107\" />";
But it work for custom list
query.Lists = "<Lists ServerTemplate=\"100\" />";
Can anyone tell me why this does not work for task lists?