Developer Portal for YouTrack and Hub 2021.3 Help

Issue Count

This resource lets you get the number of issues returned by a search.

Resource

/api/issuesGetter/count

Returned entity

IssueCountResponse. For the description of the entity attributes, see Supported Fields section.

Supported methods

IssueCountResponse attributes

Represents the number of issues in a search result.

This table describes attributes of the IssueCountResponse entity.

  • To receive an attribute in the response from server, specify it explicitly in the request parameter fields.

  • To update an attribute, provide it in the body of a POST request.

Field

Type

Description

count

Long

The number of issues found by a search. Can be null.

unresolvedOnly

Boolean

true when the Hide resolved issues control is enabled. Can be null.

query

String

The search query. Can be null.

folder

IssueFolder

The currently selected search context. Can be null.

Get Issue Count

Get the number of issues found by a search.

Request syntax

POST /api/issuesGetter/count?{fields}

Request parameters

Parameter

Type

Description

fields

String

A list of IssueCountResponse attributes that should be returned in the response. If no field is specified,only the entityID is returned

Sample

Sample request

https://example.myjetbrains.com/youtrack/api/issuesGetter/count?fields=count

Sample request body

{ "folder": { "$type":"Project", "id":"81-1" }, "query":"for: john.smith ", "unresolvedOnly":false }

Sample response body

{ "count":29, "$type":"IssueCountResponse" }
Last modified: 14 September 2021