YouTrack Standalone 2017.3 Help

Get a Saved Search by Name

GET /user/search/{savedQuery}

Get saved search by name

GET /rest/user/search/{savedQuery}

Request parameters:

Name Type Description
savedQuery searchName Name of a saved search to get.

Response parameters:

Name Description
name Name of the saved search.
projectShortName Sort name of the project this search applies to.
visibleForGroup Group of users, who can see this saved search.
updatableByGroup Group of users, who can update this saved search.

Samples

Sample 1

Request

GET http://localhost:8081/rest/user/search/Query%20name 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: 184 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <search name="Query name" projectShortName="HBR" visibleForGroup="idea-developers" updatableByGroup="idea-admins">#Fixed</search>

Sample 2

Request

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

Response

HTTP/1.1 404 Not Found Content-Type: application/xml;charset=UTF-8 Content-Length: 106 <?xml version="1.0" encoding="UTF-8" standalone="yes"?><error>Saved search [Query name] not found.</error>
Last modified: 18 August 2017