# Bug OP-8816 - After calling "Create project copy" API endpoint, the Job Status API should return the new projects id, not only its identifier 

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-8816

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.5.8 |
| Observed in versions |  |
| Sprint | 12.5.8 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

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

## Description

### **Environment**:

Your OpenProject Version: 11.3.0

Operating System / Browser / OpenProject language:

### **Logs**

### **Steps to reproduce:**

1.  Create a new project with the "Create project copy" endpoint of the api, by coping another project 
2.  Call the job\_statuses api for the jobId returned by the previous call (GET /api/v3/job\_statuses/...jobId... )
3.  When the job's status is "success" there is no mention about the new project's id, instead there is only reference to its identifier which is given by the user. 

### **Actual Behavior**

An api call to a job created by the "Create project copy" returns only the following info about the new project and not its id:

{"\_type":"JobStatus","jobId":"86c45000-87cb-4020-97cd-b6880173559e","status":"success","message":"Created project New project","payload":{"title":"Copy project","redirect":"<https://openproject.demo.gov.gr/projects/new\__project&quot;},&quot;\_links&quot;:{&quot;self&quot;:{&quot;href&quot;:&quot;/api/v3/job\_statuses/86c45000-87cb-4020-97cd-b6880173559e&quot;}}}>

### **Expected Behavior**

The "[Create Project Copy](https://docs.openproject.org/api/endpoints/projects/#projects-create-project-copy)" api endpoint should have similar response with the "[Create Project](https://docs.openproject.org/api/endpoints/projects/#projects-create-project)" endpoint. At least it should return the new projects id since it is used by every other api endpoint to handle any project.
