# Bug PIR-84 - "New project" role is assigned after dependencies are copied

Project: Project Inititation Requests
Status: closed
URL: https://community.openproject.org/work_packages/PIR-84

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Project creation |
| Target versions | 17.0.0 |
| Observed in versions |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Oliver Günther |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Effort (shirt size) |  |
| Work |  |
| Labor costs |  |

## Description

### Before filing a report

_Before you file a report, please ensure you are running the latest version of OpenProject and_&nbsp;  
_have searched for similar bug reports._

### Steps to reproduce

_Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:_

1.  Have a project template with a saved work package query that has a column for &quot;project phases&quot;
    
2.  Have a template membership for user A that is only allowed to copy projects, so he can see the template
    
3.  In global projects &quot;New projects&quot; setting, set a role for the new project that has the permission to view work packages and project phases
    
4.  Copy the template
    

### What is the buggy behavior?

_Please describe the bug in as much detail as possible. Example:_

*   You see an error that the query cannot be copied
    
*   This happens because the dependencies are copied before the new project role is assigned
    

### What is the expected behavior?

_Describe how the application should behave like. Example:_

1.  The user can copy the project without errors
