Query Syntax
To filter issues or tags that you receive from a server in response to your request, you need to specify the query
parameter in the request.
When working with collections of issues, the
query
parameter represents a search query and has the same syntax with the adjustment for HTML symbols escaping for URIs. For details about YouTrack search queries, refer to the Search Query Reference.When working with collections of tags, you can use the
query
parameter to filter a list of tags by the tag name.
Samples
Let's see how queries work on a sample request for the issues list.
Request without Query Parameter
First, let's get an unfiltered list of issues without the query
parameter. Here's a sample request:
In response, the server sends the following:
Request with Query Parameter
Now, let's use the query
request parameter to filter the list of issues by the name
of the project. Here's a sample request:
To the sample request with the query
parameter, the response body contains data only for matching issues:
Finally, let's use a bit more complex query. Here, we are looking for issues that are assigned to the user "john.doe", are not yet resolved, and contain the word "summary". Here's a sample request:
Here's the response from the server: