Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get version related issues count

Returns a bean containing the number of fixed in and affected issues for the given version.

GET/api/2/version/{id}/relatedIssueCounts
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

or
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Path parameters
idstringrequired

ID of the version.

Responses
200

Returned if the version exists and the currently authenticated user has permission to view it.

customFieldNamesVersionUsageInCustomFields[]
Show properties
Array of VersionUsageInCustomFields
customFieldIdinteger<int64>
fieldNamestring
issueCountWithVersionInCustomFieldinteger<int64>
issueCountWithCustomFieldsShowingVersioninteger<int64>
issuesAffectedCountinteger<int64>
issuesFixedCountinteger<int64>
selfstring<uri>
404

Returned if the version does not exist or the currently authenticated user does not have permission to view it.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'http://jira.example.com/rest/api/2/version/string/relatedIssueCounts' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json'
Response
{
  "customFieldNames": [
    {
      "customFieldId": 10000,
      "fieldName": "Field1",
      "issueCountWithVersionInCustomField": 2
    }
  ],
  "issueCountWithCustomFieldsShowingVersion": 54,
  "issuesAffectedCount": 101,
  "issuesFixedCount": 23,
  "self": "http://www.example.com/jira/rest/api/2/version/10000"
}

Was this page helpful?