Search code examples
gitintellij-ideayoutracktime-tracking

How to set spent time by commit message on Youtrack Time Tracking?


I am using Youtrack Standalone version, and I enabled Time Tracking feature in Intellij IDEA. Also I installed Youtrack plugin.

I can set spent time manually in Time Tracking panel, by pressing "Post work item to bugtracker". This is pretty good, but I want this to be done by git commit message like in the following format:

{id} {summary}

{time}

id - Id of an issue
summary - summary of an issue
time - spent time of the task or commit

How can I achieve this?


Solution

  • You need to configure either VCS or TeamCity or Upsource integration in YouTrack. After you're done with configuration you'll be able to use issue a commit in format #Id command. The command can look like work 1d doing stuff which will create a workitem in the issue.