twprojects-clone_project
Duplicate an existing project or create one from a template, with configurable dates, name, and description.
Instructions
Clone/copy an existing project or instantiate one from a template.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | No | The ID of the company associated with the new cloned project. If not provided, the company of the original project will be used. | |
| days_offset | No | DaysOffset is the number of days to shift all scheduled dates in the cloned project relative to the base date. When cloning from a template, it defines the project duration span. When copying an existing project, it shifts the original start and end dates by this many days. If omitted, calculated automatically from the source project's date range. | |
| description | No | The description of the new cloned project. If not provided, the description of the original project will be used. | |
| id | Yes | The ID of the project to clone. | |
| name | No | The name of the new cloned project. If not provided, the name of the original project will be used with an incremental suffix (e.g., 'Project Name (1)'). | |
| new_from_template | No | Indicates whether the new project should be a regular one created from a template. | |
| target_date | No | Target date is the desired start or end date for the cloned project (determined by template_date_target). Used only when creating a project from a template (new_from_template=true). Accepted format: YYYYMMDD string. Defaults to the current user date if omitted. | |
| template_date_target | No | Specifies whether target_date represents the project's start or end date. When 'end', the start date is calculated by subtracting the template project's duration from target_date. Only applicable when new_from_template=true. | start |
| to_template | No | Indicates whether the new project should be set as a template. |