---
ai:
  exclude: true
search:
  tags:
    - version
    - GET
seo:
  description: >-
    Returns a bean containing the… Reference for the GET
    /api/2/version/{id}/relatedIssueCounts endpoint in the Jira Software Data
    Center REST API Reference.
sidebar:
  label: Get version related issues count
  badge: GET
title: Get version related issues count
type: openapi-operation
---
Returns a bean containing the number of fixed in and affected issues for the given version.

`GET /api/2/version/{id}/relatedIssueCounts`

**Responses**

- `200` — Returned if the version exists and the currently authenticated user has permission to view it.
- `404` — Returned if the version does not exist or the currently authenticated user does not have permission to view it.

Response example, 200:

```json
{
  "customFieldNames": [
    {
      "customFieldId": 10000,
      "fieldName": "Field1",
      "issueCountWithVersionInCustomField": 2
    }
  ],
  "issueCountWithCustomFieldsShowingVersion": 54,
  "issuesAffectedCount": 101,
  "issuesFixedCount": 23,
  "self": "http://www.example.com/jira/rest/api/2/version/10000"
}
```
