---
title: "Get version's related issues count"
method: GET
path: "/rest/api/2/version/{id}/relatedIssueCounts"
tags: ["Project versions"]
---

# Get version's related issues count

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

Returns the following counts for a version:

 *  Number of issues where the `fixVersion` is set to the version.
 *  Number of issues where the `affectedVersion` is set to the version.
 *  Number of issues where a version custom field is set to the version.

This operation can be accessed anonymously.

**[Permissions](#permissions) required:** *Browse projects* project permission for the project that contains the version.

## Path parameters

- `id` string, required

## Response `200`

Returned if the request is successful.

- VersionIssueCounts — Various counts of issues within a version.
  - `customFieldUsage` VersionUsageInCustomField[] — List of custom fields using the version.
    - `customFieldId` integer — The ID of the custom field.
    - `fieldName` string — The name of the custom field.
    - `issueCountWithVersionInCustomField` integer — Count of the issues where the custom field contains the version.
  - `issueCountWithCustomFieldsShowingVersion` integer — Count of issues where a version custom field is set to the version.
  - `issuesAffectedCount` integer — Count of issues where the `affectedVersion` is set to the version.
  - `issuesFixedCount` integer — Count of issues where the `fixVersion` is set to the version.
  - `self` string, uri — The URL of these count details.

## Other responses

- `401` — Returned if the authentication credentials are incorrect.
- `404` — Returned if: * the version is not found. * the user does not have the required permissions.

---

[API](https://skmtc.net/atlassian/apis/the-jira-cloud-platform-rest-api.md) · [All operations](https://skmtc.net/atlassian/apis/the-jira-cloud-platform-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/the-jira-cloud-platform-rest-api/versions/a26541c2f8bd/schema)
