Get Saved Searches for a User
GET /user/{user}/filter
Get the list of saved searches for a specific user
GET /rest/user/{user}/filter
Parameters:
Name | Type | Description |
---|---|---|
user | userByLogin | Login name of a user to get Saved searches for. |
Sample
Sample 1
Request
GET https://example.com/youtrack/rest/user/app_exception/filters
Connection: keep-alive
Cookie: $Version=0; JSESSIONID=342efpzevk821sa2fh6oszm07; $Path=/;
jetbrains.charisma.main.security.PRINCIPAL=MTVhMjY2OGUxMTUxMTI5MGMzNjhlZWM5NTJiNGJkNmIyNzc3NjdjZmM3YWU4MTVjYzQwYWE1MWZlYTkwNTcxNzphcHBfZXhjZXB0aW9u;
$Path=/
Response
HTTP/1.1 200 OK
Content-Type: application/xml;charset=UTF-8
Content-Length: 309
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<queries>
<query name="Assigned to me" query="for: me"/>
<query name="Reported by me" query="by: me"/>
<query name="Assigned to me" query="for: me"/>
<query name="Commented by me" query="commenter: me"/>
<query name="Reported by me" query="by: me"/>
</queries>
Sample 2
Request
GET https://example.com/youtrack/rest/user/root/filters
Connection: keep-alive
Cookie: $Version=0; JSESSIONID=342efpzevk821sa2fh6oszm07; $Path=/;
jetbrains.charisma.main.security.PRINCIPAL=MTVhMjY2OGUxMTUxMTI5MGMzNjhlZWM5NTJiNGJkNmIyNzc3NjdjZmM3YWU4MTVjYzQwYWE1MWZlYTkwNTcxNzphcHBfZXhjZXB0aW9u;
$Path=/
Response
HTTP/1.1 403 Forbidden
Content-Type: text/plain
Transfer-Encoding: chunked
<error>You have no rights to read user.</error>
Last modified: 17 December 2019