none
Content Query Tool Part - Tasks 2010 RRS feed

  • Question

  • Hello,

    we are using a "Content Query Tool"-webpart to query all open tasks in a site-collection.

    The problem is, there are two list types: "Tasks" and "Tasks 2010".

    Drop-down-list:

    I checked the List-type-id of old task-lists and new ones. All have the type = 107.

    But the content-query-tool is not showing all the tasks, some are found in list-type "Tasks 2010" and some in type "Tasks".

    What can we do to show all tasks ? Is there a way to convert old task-lists (without losing data) ? Is there an other way to show them in one list ?


    Wednesday, November 22, 2017 12:33 PM

All replies

  • Hi Thomas- I suggest you create a content type for tasks and apply it to both lists. Then query for that instead of the list name.

    cameron rautmann

    Wednesday, November 22, 2017 1:04 PM
  • Not possible, we already have dozens of tasks lists, all inheriting the base-type of the task-content-type.

    The problem is, that the content-query-tool is differing the list-base-types and offering two different types, but which are not (both 107).

    Wednesday, November 22, 2017 1:19 PM
  • Yes, possible. Create a new content type and apply it to all libraries.

    cameron rautmann

    Wednesday, November 22, 2017 1:22 PM
  • Hi,

    The lists with Tasks (2010) list type are the tasks lists for SharePoint 2010 workflows.

    To show all tasks in a web part, you can use Content Search Web part. Enter query by using Keyword Query Language (KQL), or use the Keyword filter and Property filter lists to build the query.

    For example, using the following KQL to get all task results:

    contentclass:STS_ListItem_Tasks


    Information about how to Configure a Content Search Web Part in SharePoint:

    https://support.office.com/en-us/article/Configure-a-Content-Search-Web-Part-in-SharePoint-0dc16de1-dbe4-462b-babb-bf8338c36c9a

    Best Regards,

    Linda Zhang


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Thursday, November 23, 2017 7:01 AM
    Moderator
  • Search is not gonna work on our use-case, because we need realtime responses (e.g. manager approves travel-request -> task should immediately be removed from the query result).

    I am looking into the customization of the content-query-webpart, to somehow set two or more list-types.
    The problem with setting it to a basetype (0x108*) is the max limit of 1000 lists to be queried.

    Friday, January 26, 2018 8:23 AM