Задайте вопросЗадайте вопрос
 

ОтвеченоAssigning SharePoint tasks to groups

  • 28 февраля 2008 г. 8:45Davy Maes Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     

    I've noticed that when I assign a task to a SharePoint group where my useraccount is a member of; that task doesn't appear in the task list under SharePoint-sites in my site.

    When I assign a task directly to my useraccount that task does appear in the task list in my site.

    Is there a way to make tasks assigned to a group where your useraccount is a member to appear in the task list in my site?

     

    I get the same when I use the webpart contentquery in Sharepoint.

    When I filter for content type tasks and use the filter assigned to equals [me] I only see the tasks directly assigned to my useraccount in the list, not those assigned to the group(s) whereto my useraccount belongs.

     

    Is there a workaround or something because this is really important.

     

    Thanks in advance.

     

    Davy

     

     

Ответы

  • 8 сентября 2008 г. 23:45Murilo Rodrigues Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     ОтвеченоС кодом
    Hi Guys,

    I think I found a solution without having to code a new web part. The idea is to use the Membership comparator, which is used by the "By My Groups" view. The Membership comparator seems to work just like the other comparators ("is equal to", "is greater than", "is less than", etc), but is not available in the "Filter" section of a view.

    Try following these steps:

    • Create a new view, and open the corresponding Aspx in Sharepoint Designer
    • In the source code, locate the ListViewXml tag
    • Inside this tag, locate the Where clause (begins with "<Where"  and ends with "/Where>")
    • Replace the contents of this tag with the following:

     


    <Where><Or><Membership Type=
    "CurrentUserGroups"><FieldRef Name="AssignedTo"/></Membership><Eq><FieldRef Name="AssignedTo"/><Value Type="Integer"><UserID Type="Integer"/></Value></Eq></Or></Where> 

    Save the page, and you're ready to go.

    Work's for me! Please, give me some feedback if you managed it to work too.

    Regards,

    Murilo

Все ответы