| name | youtrack |
| description | Manage YouTrack issues, projects, and workflows via CLI. Use when creating, updating, searching, or commenting on YouTrack issues, listing projects, checking issue states, or automating issue workflows. |
| metadata | {"clawdbot":{"emoji":"🎫","requires":{"bins":["jq","curl"]}}} |
YouTrack CLI
Use ytctl (in scripts/) for YouTrack issue tracking.
Setup
Credentials stored in ~/.config/youtrack/config.json:
{
"url": "https://your-instance.youtrack.cloud",
"token": "perm:xxx"
}
Or set env vars: YOUTRACK_URL, YOUTRACK_TOKEN
Generate token: YouTrack → Profile → Account Security → New Token
Commands
ytctl projects
ytctl issues
ytctl issues SP
ytctl issues SP --query "state: Open"
ytctl issues --max 50
ytctl issue SP-123
ytctl create SP "Bug: Login fails"
ytctl create SP "Feature request" "Detailed description here"
ytctl update SP-123 state "In Progress"
ytctl update SP-123 assignee john.doe
ytctl update SP-123 priority Critical
ytctl comment SP-123 "Investigating this now"
ytctl search "project: SP state: Open assignee: me"
ytctl search "created: today"
ytctl search "#unresolved sort by: priority"
ytctl states SP
ytctl users
ytctl users --query "john"
Query Syntax
YouTrack query examples:
state: Open — by state
assignee: me — assigned to current user
created: today — created today
updated: {last week} — updated in last week
#unresolved — all unresolved
has: attachments — with attachments
sort by: priority desc — sorted
Combine: project: SP state: Open assignee: me sort by: updated
Output
Default: table format. Add --json for raw JSON output:
ytctl issues SP --json
ytctl issue SP-123
Bulk Operations
ytctl bulk-update "project: SP state: Open" state "In Progress" --dry-run
ytctl bulk-update "project: SP state: Open" state "In Progress"
ytctl bulk-comment "project: SP state: Open" "Batch update notice"
ytctl bulk-assign "project: SP #unresolved" john.doe --dry-run
Reports
ytctl report SP
ytctl report SP --days 14
ytctl report-user zain
ytctl report-user zain --days 30
ytctl report-states SP
Notes
- Project can be shortName (SP) or full name
- Fields: state, summary, description, assignee, priority
- Use
ytctl states PROJECT to see valid state names
- Bulk operations support
--dry-run to preview before executing