YouTrack icon

YouTrack

Get data from YouTrack API

Command → Execute

AI-generated

Summary

Execute a YouTrack command on one or more issues specified by their IDs, supporting bulk operations. Returns details about the executed command and affected issues.

Inputs

  • Issue IDs (required) — Comma-separated list of issue IDs to which the command will be applied, supporting both readable IDs (e.g., PROJECT-123) and database IDs (e.g., 2-15). Both formats can be mixed.
  • Command Query (required) — The YouTrack command string to execute, such as tag modifications, assignee changes, votes, stars, work items, visibility changes, and more. Note that 'vote+1' cannot be used on your own issues and for assignee commands use 'for me' or 'for username'.
  • Additional Options — Optional configuration including: 1) Comment: text to add as a comment with the command (should not be included directly in the command query); 2) Fields: comma-separated list of fields to return in the response; 3) Silent: boolean to suppress update notifications when applying the command (requires appropriate permission).

Output shape

an object containing the executed command query, a list of issues affected with their IDs, and visibility info including permitted groups and users as per the default or requested fields

The output includes the fields requested via the 'Fields' option, defaulting to issues (id, idReadable), query string, and visibility details (permittedGroups and permittedUsers). Bulk operations are supported by specifying multiple issue IDs. If 'Silent' is enabled, update notifications are suppressed, requiring the relevant permission.

Examples

Example 1: Tag several issues for deployment

Set Issue IDs to 'PROJECT-123, PROJECT-124' and Command Query to 'tag To deploy for me', optionally add a comment describing the operation, and execute.

Example 2: Add a work item time entry to multiple issues

Specify multiple Issue IDs and write a Command Query like 'work 2h Fixed bug', optionally include a comment, and execute to apply the time tracking entries.

Links

Discussion