# Feature OP-19278 - Extend API for work packages endpoint to allow "version" in select

Project: OpenProject
Status: new
URL: https://community.openproject.org/work_packages/OP-19278

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| Backlog bucket |  |
| Votes | 1 |
| 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 | API |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

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

## Estimates and progress

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

## Description

### Steps to reproduce

1.  Make an API request and add the select param for the version: `curl -u "apikey:$OP_API_KEY" "https://openproject.local/api/v3/work_packages?select=elements/version"`
    

### What is the buggy behavior?

*   You get an error message:
    

```json
{
  "_type": "Error",
  "errorIdentifier": "urn:openproject-org:api:v3:errors:InvalidSignal",
  "message": "The requested select of versions is not supported. Supported selects are self, project, status, type, author, a
ssignee, responsible, _type, id, subject, startDate, dueDate, date, *."
}
```

### What is the expected behavior?

1.  You get a response showing the selected version for a work package
    
    <br>
    

###
