transition_issue
Set required fields on an issue, then transition it to a target state. Returns the exact workflow rule if the transition is blocked.
Instructions
Change an issue's State, gate-aware: set required fields first, then transition, and report the exact workflow rule if it still blocks.
YouTrack workflow scripts often gate transitions ("set Dev Estimation
before To Do"). A raw update fails one opaque 400 at a time; this tool
applies set_fields field-by-field first (command syntax, e.g.
'Dev Estimation 2d QA Estimation 1d'), then attempts the state change.
If a gate still blocks, the blocking rule's own text is returned so
the caller knows exactly what to supply — nothing is ever invented.
Args: issue_id: Issue ID or URL state: Target state name (bare, e.g. 'To Do', 'Ready for QA') set_fields: Fields to set before transitioning (command syntax; optional) instance: YouTrack instance (optional)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| instance | No | ||
| issue_id | Yes | ||
| set_fields | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |