Automatic (Task) List population on site provision

James Love
  • Automatic (Task) List population on site provision James Love

    I'm needing a hand deciding an approach to this. Here is the business requirement.

    Create a Meeting Workspace which contains a Project Tasks List (OOTB) and fills it with "stub" tasks (such as "send invites") with deadlines relative to the date on which the Meeting takes place (such as "minus 2 weeks from Meeting").

    These "Stub tasks" might be stored in a list somewhere in the parent Web, to allow customisation.

    Site Templates can save list contents to the template, but you loose the relativity of the task dates.

    I thought about creating a feature receiver to trigger when the site is provisioned, and programmatically enter the tasks, but in order to staple the feature to just a specific site template, I'd need to create a brand new Site Definition (derived from the MPS definition), which seems a fair bit of work for (what appears to be) such a simple requirement.

    What other ways could I approach this without creating a new Site Definition?

  • If you automate the creation of the sub site via a web part or other mechanism then you can populate the list from this same code after the site has been created.

    Not sure if this fits your workflow, but it is probably the simplest approach.

  • An alternative would be to bundle everything into a web part that can trigger the data population and custom setup actions.

    With that said, I would do the custom Site Def and feature receiver.

  • This sounds like it could be solved with a custom provisioning provider. This would only require a new entry in a custom WEBTEMP.xml and some provisioning code that instantiates what you need.

    See my links on the subject here

  • You don't need to staple your feature with a receiver, just create a plain ol receiver that creates your setup actions and then activate it on demand.

    You could also make a custom action for the Project Tasks list, which makes the population.

Tags
site-template site-definition meeting-workspace
Related questions and answers
  • I'm pretty new to sharepoint-development, so I thought I'd check real quick with the gurus in here. I've been given the task of building a replacement for the built-in Alert Me feature. The main reason for this is to allow for alerting members of a role with a forms authenticated sharepoint. This is where you guys come in. I know you can build an immediate Alert Me function by creating list item event receivers. However, if I wanted to create the summary-feature (daily/weekly notifications) - what would be the best way to go about this? With very limited knowledge, all I could think

  • I have the requirement to make a workflow fire when a task is modified and after it has been completed. After the task has been completed, I am trying to set it back to an uncompleted status. From another work flow I update the task 'status' from 'completed' to 'not started'. The status gets updated but after the task is completed the second time the status is not updated from 'not started' to 'completed'. The reason seems to be because i am unable to update the task's 'outcome' column from 'completed' to '' (blank). Is there a way to update this field non programatically? Specifically

  • I am trying to create a workflow on SharePoint 2007 that should go like so: User adds a new item in the "Faults" list. When creating it, he ticks the boxes for whatever departments needs to address the fault. The appointed representative of each selected department is assigned a task to check the new item. The represenative marks the task as complete. All tasks are completed and the workflow... of departments is not possible since they can't be expected to know the appointed representatives of every department. I can create a task through the "Create List Item" action, but the workflow is marked

  • So I did create on an SPWeb 20 custom lists and then a tasks list. For each of those 20 lists I've created 20 site lookup columns. I then created 20 Content Types based on Task content type. Then I've added each content type to the Tasks list. After that I've added each lookup site column to the corresponding list content type. So far so good. I've built a custom WebPart that displays task items... = list; SPQuery query = new SPQuery(view); System.Text.StringBuilder sbViewFields = new System.Text.StringBuilder(); // all fields from view foreach (string field in view.ViewFields

  • to the Pages library. This correctly provisions the page to the Pages library with an Announcements List View web part provisioned to the page. I have about 800 (or so) sites created from this site definition...This is in the context of MOSS 2007. I have a custom site definition. Currently in ONET.xml we have the following Module: <View List="$Resources:core,lists_Folder;/$Resources:core... to configure my site definition to create the correct web parts for existing sites and any new sites?

  • it to the default.aspx home page. I would be happy either way. Note: I want to be able to activate this on existing site, I dont want to create a new Site Definition. Here is what I have tried: Feature Receiver... because I think its a critical limitation that will cause me grief in future solutions too. Here is the scenario. I have an existing site and I want to be able to activate a feature... work either. I should be able to do it by more heavily customising the List Definition, but that seems a little over the top and I'm reluctant to do that before ruling out the other options. So

  • I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I have the following requirements about `Task Management and want to know whether SharePoint Server 2007 can implement such feature. And if not, what kind of Microsoft or non-Microsoft product could achieve such goals (and could integrate with SharePoint Server 2007). I prefer Microsoft product because I have requirement to integrate task management feature into SharePoint, and I think using Microsoft product is easier for integration with SharePoint. :-) Requirements are, For Task Management, task

  • I want to show the contents of three specific columns from one specific list item. Like Meeting list item ID 5 contains Name MeetingDate Bitfield1 Bitfield2 John Doe 23-06-2010 Yes No In a web part (if possible) I want to create this view: Meeting Date: 23-06-2010 Bitfield1: Yes Bitfield2: No (Edit link to Meeting list item ID 5) Is that possible without coding a web part from scratch? E.g. with the XML web part or others? (solution is MOSS 2007 Enterprise based if that's relevant)

  • If you open the DispForm.aspx for an item in a Calendar List, you see a link and display text to the Meeting Workspace (if one exists) for that event. How can I access the link to the Meeting Workspace from the Object Model? There appears to be a boolean field called "Workspace" which says if one exists or not, but I can't seem to find a way to see which Workspace it links to. Any ideas?