YouTrack InCloud 2017.3 Help


This module contains functionality that lets you search for issues in YouTrack.


static search(folder, query, user)

Returns issues that match a search query. If a sort order is not specified explicitly in the query, the issues that are returned are sorted in random order.


folder WatchFolder The name of the project, tag or saved search to set as the search context. If the value for this parameter is not provided, the search includes all issues. This is equivalent to a search that is performed in the user interface with the context set to Everything.
query string A YouTrack search query.
user User The user account that executes the search query. The list of issues that is returned excludes issues that the specified user does not have permission to view. If the value for this parameter is not provided, the search query is executed on behalf of the current user.


var search = require('@jetbrains/youtrack-scripting-api/search'); ... var query = 'for: me State: {In Progress} issue id: -' +; var inProgress =, query, ctx.currentUser); if (inProgress.isNotEmpty()) { // Do smth with a found set of issues. }


Last modified: 17 November 2017