Overview
The Gitar YouTrack integration connects a YouTrack instance, InCloud or self-managed, to your pull requests. Gitar reads issues, creates and updates them, comments, and moves them between states.InCloud and self-managed both work, with one field either way. Enter
https://your-company.youtrack.cloud on InCloud.Read Linked Issues
Resolve a
PROJ-123 reference from a PR title, description, or branch nameValidate Against the Issue
Judge a PR against the objectives its issue asks for
Create and Update
Open follow-up issues and update existing ones from a rule
Comment and Transition
Post back to an issue and move it to a new state
Before you start
InCloud needs no checks. Enter your tenant URL and skip to Connect YouTrack. Self-managed, check your instance against two requirements:- HTTPS on port 443 with a publicly trusted certificate. A self-signed certificate does not work.
- Reachable from Gitar. If you enforce an inbound allowlist, add Gitar’s egress IP addresses.
https://tools.your-company.com/youtrack.
Connect YouTrack
1
Create a service account
Gitar acts as a dedicated user, so its activity stays attributable and survives staff changes.
- Go to Administration → Users → New user
- Name it
gitar-service
2
Give the account a project role
A YouTrack permanent token carries its user’s own permissions, so what Gitar can reach is decided by this account’s project roles rather than by the token.
- Open each project Gitar should work with
- Go to Settings → Access and add
gitar-service - Give it the Contributor role
3
Generate a permanent token
- Sign in as
gitar-service - Open the profile menu → Profile → Account Security
- Under Authentication tokens, click New token and name it
gitar - Leave the scope at YouTrack
- Copy the token
4
Connect YouTrack in Gitar
- Go to your organization’s Settings in the Gitar dashboard
- Open the Integrations section
- Find the YouTrack card under Ticketing & Documentation and click Connect
Using YouTrack in rules
Ask for YouTrack by name in a custom rule and the agent picks it up. Gitar can look up an issue by id, search, list a project, create, update, comment, and transition. See Rules for how to write one. Search takes YouTrack’s own query language, so a rule can ask for something like#Unresolved Assignee: me and get what the same query returns in the UI.
Gitar also reads YouTrack issues for functional validation, which checks a PR against the objectives its issue asks for. That needs no rule.
Frequently asked questions
Does this work with YouTrack InCloud?
Yes. Enter your tenant URL, for examplehttps://acme.youtrack.cloud, and mint the permanent token the same way, under the service account’s profile. No separate API host to enter.
Can I give Gitar read-only access?
Yes. Givegitar-service the Observer role instead of Contributor, or Reporter on a pre-2026 instance. Gitar reads issues and every write fails, which is enough for functional validation.
Which projects can Gitar see?
Only the projectsgitar-service has a role on. A permanent token carries its user’s permissions, so a project role is what limits Gitar. Grant a role on a single project to scope Gitar to it.
If the YouTrack card connects but Gitar reports no projects, the account has no role anywhere yet.
Can I use YouTrack alongside Jira, Linear, or Plane?
Connect as many ticket trackers as you use. A bare key likePROJ-123 looks identical across all four, so Gitar attributes it by precedence: Jira first, then Linear, then Plane, then YouTrack. An org running two trackers never resolves a bare key to the second one.
Do I need to enable markdown?
No. Gitar writes issue bodies and comments as markdown, and YouTrack renders it.What happens when my token expires?
Gitar’s YouTrack calls start failing. Generate a new token in YouTrack, then update it under Settings → Integrations → YouTrack.Why was my base URL rejected?
Gitar accepts HTTPS only, with no exception for a hostname on your internal network. A trailing/api is fine and is trimmed for you.