YouTrack Standalone 2018.2 Help

Add Work Items

When time tracking is enabled in a project, you can add work items to issues. You can use this feature to log the amount of time that you spend working on an issue and record the type of work performed.

Spent Time Calculations

The amount of time spent that is entered in each work item is added to a field that stores a period type. The actual field that stores this data is defined at the project level. This field records the total amount of time that is reported for all work items in the issue. You cannot update this value manually — only by adding or editing work items.

Time Left and Overdue Estimations

The amount that is recorded as spent time is compared to the value that is stored in another period type field that stores estimations. The field that stores the estimation presents this calculation in a progress indicator. The amount of spent time that does not exceed the original estimation is drawn in green. The missing piece of the pie represents the amount of time that is left over. The time left and estimation are displayed in a tooltip when you move the pointer over the progress indicator.

timeTrackingSpentTimeLeft

When the spent time exceeds the original estimation, the progress indicator is drawn as a red circle. The tooltip displays the amount of spent time that exceeds the original estimation.

timeTrackingSpentTimeOverdue

Synchronization Between Tasks and Subtasks

For issues that are linked as the parent for other issues, YouTrack automatically calculates the estimation and spent time as the sum of values that are added to each subtask.

time tracking parent issue
  • If you add work items to a parent task, the spent time in the parent task includes spent time from work items that are added to the parent task plus the total spent time for each of its subtasks. For this reason, we generally recommend that you avoid adding work items to parent tasks.

  • If you change the estimation for a parent task, the synchronization between the parent task and its subtasks is broken. To restore the synchronization and calculate the estimation for the parent task automatically, set the estimation value in the parent task to the total estimation for each of of its subtasks.

Add Work Items to Issues

If time tracking is enabled in the project, spent time is visible in the activity stream. These events are visible when the Spent time filter is enabled.

To add a work item to an issue:

  1. Open the issue in single issue view.

  2. Click the Add spent time link below the input field for comments.
    add spent time manually
    • The input field for comments is replaced with the Spent time field.

    add spent time
  3. The default values for work author and work date are set to the current user and current date, respectively.
    • To change the work author, select another user from the list.

    • To change the work date, click the date link and select another date from the calendar.

  4. Select an optional work item type from the list.

  5. Enter the amount of time spent in the format #w#d#h#m. The durations are calculated automatically. For example, if you enter 120m, the duration is set to 2h in the work item.

  6. Enter an optional comment.

  7. Click the Add spent time button.
    • The work item is added to the issue.

    • The spent time is added to the custom field that stores this value.

    • The progress indicator in the field that is used to estimate the total effort is updated.

Add Work Items with a Command

You can use commands to log your work for an issue without having to open it and enter work items manually. You can even add similar work items to multiple issues simultaneously.

To add work items with a command:

  1. Select one or more issues in the issues list.

  2. Start typing work to open the Apply Command dialog.

  3. Enter a command in the following format: work [work item type] [date] [time period] [description] Use the following parameters to set values for the work item:

    Parameter

    Condition

    Description

    [work item type]

    Optional

    Set the work item type.

    [date]

    Optional

    Set the date with the format yyyy-mm-dd. If skipped, the current date is assigned to the work item.

    [time period]

    Mandatory

    Enter the amount of time spent working on the issue.

    [description]

    Optional

    Enter a description of the work performed.

    ttCommandSample thumbnail
  4. Enter a comment, if needed.

  5. Click the Apply button.
    • The work item is added to the issue.

    • The spent time is added to the custom field that stores this value.

    • The progress indicator in the field that is used to estimate the total effort is updated.

Add Work Items Automatically

If you manage a project and want your team to track spent time, you can configure your project to log work items automatically.

  1. Enable and configure time tracking in your project. For more information, see Enable Time Tracking.

  2. Attach the In Progress Work Timer default workflow to your project. For more information, see Manage Workflows.

Last modified: 7 March 2019