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 the server, specify it explicitly in the
fields
request parameter.To update an attribute, provide it in the body of a POST request.
Field | Type | Description |
---|---|---|
id | String | The ID of the IssueCountResponse. |
count | Long | The number of issues found by the search. If this number equals -1, it means that YouTrack hasn't finished counting the issues yet. Wait for a bit and repeat the request. Can be null . |
unresolvedOnly | Boolean | |
query | String | The search query. |
folder | IssueFolder | The currently selected search context. |
Get Issue Count
Get the number of issues found by a search.
If the response returns "count": -1
, it means that YouTrack hasn't finished counting the issues yet. Wait for a bit and repeat the request.
Request syntax
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 |
Sample 1
Sample request
Sample request body
Sample response body
Sample 2
If the response returns "count": -1
, it means that YouTrack hasn't finished counting the issues yet. Wait for a bit and repeat the request.