# Bug SPAR-223 - Some dates and scheduling mode are lost when creating project from template

Project: Stream Planning and Reporting
Status: closed
URL: https://community.openproject.org/work_packages/SPAR-223

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 16.0.1 |
| Observed in versions | 15.4.0 |
| Bug found in version (deprecated) | 15.4.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Christophe Bliard |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Create a project named &quot;Template&quot; with work packages having relations:
    
    1.  a child and a parent which both have dates and where the parent is automatically scheduled
        
    2.  a predecessor and a successor which both have dates and the successor is automatically scheduled
        
2.  Mark the project as template (Project &gt; Project settings &gt; Information &gt; three dots menu in top right corner &gt; Set as template
    
3.  Create a new project using the project template named &quot;Template&quot; that was just created
    
4.  Go to the work package list
    

### What is the buggy behavior?

*   The successors being automatically scheduled are now manually scheduled
    
*   ~~The parent work packages have no dates, despite being in automatic scheduling mode and having children with dates~~
    

### What is the expected behavior?

1.  The project created from the template should be the exact copy of the template project
    
    1.  Dates should be carried over
        
    2.  Scheduling modes should be carried over
        

### Screenshots and other files

Here is an animation showing differences between a project template and a project created from it:

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/372524/content">

### Environment information

**OpenProject version**

15.4.0
