YouTrack Standalone 7.0 Help

Get All Saved Searches Accessible for a User

GET /user/search

Get all user's saved searches

GET /rest/user/search

Response parameters:

For description of attributes, see Get a Saved Search by Name.

Samples

Sample 1

Request

GET http://localhost:8081/rest/user/search Cookie: $Version=0; JSESSIONID=1h2t265efsl30fhu4777pu8z6; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=MTVhMjY2OGUxMTUxMTI5MGMzNjhlZWM5NTJiNGJkNmIyNzc3NjdjZmM3YWU4MTVjYzQwYWE1MWZlYTkwNTcxNzphcHBfZXhjZXB0aW9u; $Path=/

Response

HTTP/1.1 200 OK Content-Type: application/xml;charset=UTF-8 Content-Length: 86 Server: Jetty(7.2.0.v20101020) <?xml version="1.0" encoding="UTF-8" standalone="yes"?><savedSearches></savedSearches>

Sample 2

Request

GET http://localhost:8081/rest/user/search Cookie: $Version=0; JSESSIONID=1h2t265efsl30fhu4777pu8z6; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=MTVhMjY2OGUxMTUxMTI5MGMzNjhlZWM5NTJiNGJkNmIyNzc3NjdjZmM3YWU4MTVjYzQwYWE1MWZlYTkwNTcxNzphcHBfZXhjZXB0aW9u; $Path=/

Response

HTTP/1.1 200 OK Content-Type: application/xml;charset=UTF-8 Content-Length: 261 Server: Jetty(7.2.0.v20101020) <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <savedSearches> <search name="New query name" projectShortName="HBR" visibleForGroup="All Users" updatableByGroup="idea-developers"> #Fixed </search> <search name="One more query">#Task</search> </savedSearches>
Last modified: 29 September 2016