질문하기질문하기
 

답변됨Assigning SharePoint tasks to groups

  • 2008년 2월 28일 목요일 오전 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

     

     

답변

  • 2008년 9월 8일 월요일 오후 11: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

모든 응답

  • 2008년 3월 17일 월요일 오후 12:32Michelangelo69 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     

    I am having the same issue. I have 3 kinds of users groups within a project (projectleaders, teammembers and viewers). I want to limit the results of a list based on the person who is logged on (based on group membership).

     

    With regards,

    Michel

     

  • 2008년 4월 2일 수요일 오전 8:05Tim_909 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Same problem here...

    Does anyone know an overview of wich properties the filter works?

    I have made a custom view (Create View). I can filter on the column 'Assigned To'. I have set this to equal [me]. 

    I understand [me] stands for the tasks that are assigned to the user and not to the group of users..

    Does anyone know what the parameter is of identifying the group in place of the user?


    The problem is that I want to see all tasks for the current user and all tasks assigned for the group of users the current user belongs.
    In other words: A combination of the view "By My Groups" and the view "My Tasks".


    Thanx in advance.
  • 2008년 4월 28일 월요일 오후 2:59SeanCansdale 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     

    Hi Tim,

     

    I happened to go through the same process of elimination trying to achieve the same results.

     

    I did look through the By My Groups view to see if there was a setting I could copy, however could not identify such a setting.

     

    I presume too that there is a parameter for My Groups like [Me].

     

    Cheers,

     

  • 2008년 4월 28일 월요일 오후 3:15SeanCansdale 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
     SeanCansdale wrote:

    Hi Tim,

     

    I happened to go through the same process of elimination trying to achieve the same results.

     

    I did look through the By My Groups view to see if there was a setting I could copy, however could not identify such a setting.

     

    I presume too that there is a parameter for My Groups like [Me].

     

    Cheers,

     

     

    Resolved our problem by creating a new view and setting the filter to.

     

    Assign To is equal to [Me]

     

    OR

     

    Assigned To is equal to "Name of Group"

    Name of Group is a string

     

    If there are other groups you can click Show More Columns to add them.

     

    Obviously the only problem with this is it Share Point will not know which group the user is associated with, you'll need to be the intelligent interface.

  • 2008년 5월 19일 월요일 오전 11:00Josep Mola 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    I'm having the same problem.

    I want to create a custom list view to show the tasks assigned to the current user group.

    I'm looking for a keyword similar to [Today] or [Me] or another method to make it possible

    Anyone can help me??


    thanks
  • 2008년 9월 8일 월요일 오후 11: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

  • 2009년 1월 7일 수요일 오후 5:35Serge G 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Thanks Murilo, that worked for me!!!!
  • 2009년 3월 3일 화요일 오후 5:07Shannon722 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    I'm using SharePoint WSS 3.0.  How can I get this code to work.  When I insert the code the view fails to render.
  • 2009년 3월 3일 화요일 오후 7:56Shannon722 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    I got it work.  This is wonderful.  Thanks...you're a life saver.
  • 2009년 3월 25일 수요일 오후 8:55MadhusudhanHK 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Hi,

    I have the following requirement with MOSS 2007 workflow:
    Programatically i want to assign workflow task to  multiple sharepoint groups (to AssignedTo property) of Task list. Assume that i have set the property "Allow multiple selection" = true.

    I want to achieve this using c#.Net code.

    For example:
    this.workflowProperties.AssignedTo="MOSSGroup1" + ";" + "MOSSGroup2";  // Like this i can assign a task to multiple sharepoint groups. Each group may have 10-15 users.

    Through UI it is possible (means it can be achievable using MOSS Object model), by mentioning Group1 (press Ctrl+K) automatically sharepoint picks the group from site groups.

    Please let me know how to achieve this using MOSS 2007 object model? After achieving i can use the filter that you have mentioned.

    Thanks in advance.


    with  regards,
    MHK
    • 편집됨MadhusudhanHK 2009년 3월 25일 수요일 오후 8:58Content editing
    •  
  • 2009년 5월 7일 목요일 오전 10:28duncanhope 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Perfect, thank you very much.
  • 2009년 5월 20일 수요일 오후 8:38Jeremy Marie 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Great job on this workaround!  I salute you!  This works for me.
  • 2009년 9월 7일 월요일 오전 9:15azzyford 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Murilo Rodrigues!

    Thankyou so much for your answer! It worked perfect.

    I've tried so many ways to get this to work - and your solution was so simple. Thankyou :-)


    You answered this 1 day off a year ago :-)
  • 2009년 10월 13일 화요일 오후 7:43Chellappa 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Murilo .. I am not able to get this to work .. is there any way you can send me your ListViewXml code string .. i have the or that connects both the [assignedto]  equal to [me] and the or condition appears at the beginning .. it is almost like the code does not see the second selection with the or ..
    I am going to continue playing with this .. thank you again for this idea .. I have been so nervous about messing with this code (I am an aspx programmer & all this html is so foreign to me ).
    thanks again for all your help & suggestions ..
  • 2009년 11월 12일 목요일 오후 2:49valexandros 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    I have the same error to, fails to render, can you please tell me how you fix this error!

    Thanks in advance.