Project JSOM Copy Work Packages

The Project JSOM Copy Work Packages sample code demonstrates how to query for projects and tasks and create tasks using JSOM (CSOM).

Scenario

I have a common set of well-defined tasks (work packages) that I would like to re-use in many of my projects. I want to be able to easily select the work package and choose the project/task to copy the work package under.

Setup

  1. Create one or more projects that have a set of tasks that you would like to re-use.
  2. Create a summary task to group the set and give it a meaningful description.
  3. Publish the project.

Using the app

  1. Choose the (source) project containing the work package you are looking for.
  2. Choose the work package (summary task).
  3. Choose the (target) project you want to copy the work package to.
  4. Choose a parent task where the work package will be copied to.
  5. Click Submit.

Prerequisites/Deployment

To use this code sample, you need the following:

How the sample affects your tenant data

This sample runs CSOM methods that read project and read/create task data. Tenant data will be affected.

Additional resources

Copyright (c) 2016 Microsoft. All rights reserved.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.