YouTrack Standalone 7.0 Help

Get Saved Searches for a User

GET /user/{user}/filter

Get user's saved searches

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 http://localhost:8081/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 Server: Jetty(6.1.23) <?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 http://localhost:8081/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 Server: Jetty(6.1.23) <error>You have no rights to read user.</error>
Last modified: 29 September 2016