Assigning SharePoint tasks to groups
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 Thanks in advance. Davy
February 28th, 2008 11:45am

Same problem here...Does anyone know an overview of wich properties the filter works?I have made a custom view (Create View).Icanfilteronthecolumn'Assigned To'.Ihavesetthistoequal[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.
Free Windows Admin Tool Kit Click here and download it now
April 2nd, 2008 11:05am

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 Groupslike [Me]. Cheers,
April 28th, 2008 5:59pm

Thanks Murilo, that worked for me!!!!
Free Windows Admin Tool Kit Click here and download it now
January 7th, 2009 8:35pm

Hi,I have the following requirement with MOSS 2007 workflow:Programatically i want to assign workflow task to multiplesharepointgroups (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
March 25th, 2009 11:55pm

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 ..
Free Windows Admin Tool Kit Click here and download it now
October 13th, 2009 10:43pm

Yes, this certainly works. THANK YOU MURILO! I just search for "where" now.There's lots of ways to make it fail to render. My number one method: Putting an extra space or a tab or a return in there. So, make sure it's all one long string. If you put tabs or carriage returns in, you're hosed. It's got to have no gaps. If it drops to a second line in Designer, you know you've got a gap. (ironically, spaces are okay as long as they're within tags.)Here's my internal notes: There's no magic. As you build your filter, there is a filter syntax created. It seems basic. Nested <And> and <Or> tags. I couldn't get it to work with nesting the way you would with ()'s. instead, it's just linear (like the website) - And then Or then And…. Plus there's tags for each type of <Eq> (equals) and <neq> (not equal) criteria. And for each type of value. The hidden "my groups" criteria is this. <Membership Type="CurrentUserGroups"><FieldRef Name="AssignedTo"/></Membership> So, the best way I found to add this in was to build your View completely through the Sharepoint site. Where you want your "group", pick your field but do a fake [me] or a fake name to find it like "GroupsHere". Somewhere in the <where> string you made, you'll find this: <Eq><FieldRef Name="AssignedTo"/><Value Type="Integer"><UserID Type="Integer"/></Value></Eq> Just replace that entire string with the "membership" string, and you're good to go. (The Membership tags do not work with the <Eq> tags on the outside.) Once you do this, the View modify page won't render the Filter. But, you can still apparently change all of the other view criteria when you're in there. (I haven't tested sort changes. But, adding or removing columns works.)
January 7th, 2010 2:12am

Hi, I have an Requirement to meet for Task Group wise in view.. Task can be assigned to user : AssignedTo Field i have Task Group field where iam filling User Groupi want this to link with View : View Task GroupsHow do i add this statement Task Group = [Me] so that it filters in view ?iam not able to change this <Membership Type="CurrentUserGroups"><FieldRef Name="AssignedTo"/></Membership>to <Membership Type="CurrentUserGroups"><FieldRef Name="TaskGroup"/></Membership>
Free Windows Admin Tool Kit Click here and download it now
January 25th, 2010 9:14am

Thanks for the solution Murilo!!! One correction in the above given string. (Guys, only if your view doesn't show any thing even after pasting this string in your new view) Replace <"AssignedTo"> with <&quot;AssignedTo&quot;> in string provided by Murilo. Updated string: &lt;Where&gt;&lt;Or&gt;&lt;Membership Type="CurrentUserGroups"&gt;&lt;FieldRef Name=&quot;AssignedTo&quot;/&gt;&lt;/Membership&gt;&lt;Eq&gt;&lt;FieldRef Name=&quot;AssignedTo&quot;/&gt;&lt;Value Type=&quot;Integer&quot;&gt;&lt;UserID Type=&quot;Integer&quot;/&gt;&lt;/Value&gt;&lt;/Eq&gt;&lt;/Or&gt;&lt;/Where&gt; Also I would like to phrase the context for the solution. You can try it on a calendar (I did it). 1. Create two sharepoint groups with 'Contribute' permissons given to both. 2. Assign one user in first group (say 'Group A') and two users in second group (say 'Group B'). 3. Let the user in Group A create a meeting and also user in Group B will create a meeting. (So now we have two meetings created by two users associated with two different groups.) 4. Now follow what Murilo has suggested... 5. Now login with all 3 users and you will happy to see the results. :-) Regards, Thnx, Youdhbir
July 23rd, 2010 8:39am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics