YouTrack Standalone 2019.3 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 https://example.com/youtrack/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 <?xml version="1.0" encoding="UTF-8" standalone="yes"?><savedSearches></savedSearches>

Sample 2

Request

GET https://example.com/youtrack/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 <?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: 16 March 2020