# Feature OP-14749 - Add support for Batches on the JobStatus API

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

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 14.1.0 |
| Sprint | 14.1.0 |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Marcello Rocha Pereira |
| Product manager |  |
| Developers | OP Dev Titan Team |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

We have an endpoint that checks for `JobStatus` that is used to verify the completion status of background jobs.

The copy of projects now are made in an async manner using `GoodJob::Batches` which aren't supported by our APIs yet, making it seem that the job has finished earlier than it actually was.

So we should allow `API::V3::JobStatus::JobStatusAPI` to check and return a `JobStatus` for the batch.

One way to proceed is to add the `JobStatus::ApplicationJobWithStatus` to the `GoodJob::Batch` or just make the API aware of the underlying status of the batch.
