getVersionRelatedIssues method

Future<VersionIssueCounts> getVersionRelatedIssues(
  1. String id
)

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 required: Browse projects project permission for the project that contains the version.

Implementation

Future<VersionIssueCounts> getVersionRelatedIssues(String id) async {
  return VersionIssueCounts.fromJson(await _client.send(
    'get',
    'rest/api/3/version/{id}/relatedIssueCounts',
    pathParameters: {
      'id': id,
    },
  ));
}